-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added SPADE-LDM code: Modification of diffusion_model_unet to allow for SPADE normalisation to be set up as an option Modification of autoencoder_kl to allow for SPADE normalisation to be set up as an option Modification of inferer and latent inferer to allow for label to be passed through forward when SPADE is active Addition of tests to: test_spade_diffusion Creation of tutorial for 2D using OASIS subset of images. 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). * Fetch tutorial from other PR * Made sure norm_params for SPADE had a single affine argument. * Code formatting. --------- Co-authored-by: virginiafdez <[email protected]> Co-authored-by: Mark Graham <[email protected]>
- Loading branch information
1 parent
3da2673
commit e0e2559
Showing
12 changed files
with
4,882 additions
and
171 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.