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

372 add spade normalisation option for diffusion models #433

Closed virginiafdez closed 7 months ago

virginiafdez commented 8 months ago

Added SPADE-LDM code:

Even though I implemented tests, we should check very thoroughly that this works before merging, especially since the presence of SPADE norm needs for labels to be passed to the forward method, and ANY call of forward without a label if SPADE Is on will end up in error. In the same fashion, we should ensure that ANY call on forward when SPADE is not on is not disrupted (code doesn't error out because of a label missing).

virginiafdez commented 7 months ago

@marksgraham I just pushed the changes: