Skip to content

Fixed a couple of bugs to train the LDM part of the model#16

Open
Pulkit-Khandelwal wants to merge 2 commits intojongdory:mainfrom
Pulkit-Khandelwal:main
Open

Fixed a couple of bugs to train the LDM part of the model#16
Pulkit-Khandelwal wants to merge 2 commits intojongdory:mainfrom
Pulkit-Khandelwal:main

Conversation

@Pulkit-Khandelwal
Copy link

Hi,
Thank you so much for the code!!The following changes are required to train the LMD model.

The following were hardcoded in LDM's normalization.py:
nhidden = 128
nf = 128

Changed them to
nhidden = 64
nf = 64

so that the trained VQ-GAN can be used to initialize the LDM model.

In ddpm.py,
change logvar_t = self.logvar[t].to(self.device) to logvar_t = self.logvar[t.cpu()].to(self.device).

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.

1 participant