Project-MONAI / GenerativeModels

MONAI Generative Models makes it easy to train, evaluate, and deploy generative models and related applications
Apache License 2.0
555 stars 78 forks source link

Bug on inferer, when padding / cropping with intermediates = False #464

Closed virginiafdez closed 4 months ago

virginiafdez commented 5 months ago

When sampling from the inferer (LatentDiffusion or Controlnet) with adjustment required between ldm shape and aekl shape, and intermediates = False, there is an error because of the lack of an "if save intermediates" clause within the if else block that controls the padding / cropping.