Skip to content

Commit

Permalink
Update monai/inferers/inferer.py
Browse files Browse the repository at this point in the history
Signed-off-by: YunLiu <[email protected]>
  • Loading branch information
KumoLiu authored Feb 18, 2025
1 parent 22e21fe commit 83e3dd6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions monai/inferers/inferer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1211,8 +1211,6 @@ def sample( # type: ignore[override]
decode = autoencoder_model.decode_stage_2_outputs
if isinstance(autoencoder_model, SPADEAutoencoderKL):
decode = partial(autoencoder_model.decode_stage_2_outputs, seg=seg)
print("Decoding latents...")
print(latent.shape)
image = decode(latent / self.scale_factor)
if save_intermediates:
intermediates = []
Expand Down

0 comments on commit 83e3dd6

Please sign in to comment.