Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added SPADE-LDM code taking into account new changes to main: #436

Merged
merged 5 commits into from
Nov 16, 2023

Conversation

virginiafdez
Copy link
Contributor

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).

virginiafdez and others added 5 commits November 15, 2023 16:54
    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).
@marksgraham marksgraham merged commit e0e2559 into main Nov 16, 2023
@marksgraham marksgraham linked an issue Nov 16, 2023 that may be closed by this pull request
@marksgraham marksgraham deleted the 373-spade-ldm-v2 branch December 21, 2023 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add SPADE normalisation option for diffusion models
2 participants