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

VQGanVAE resolution and channels hard coded #438

Open
rbazin opened this issue Aug 1, 2022 · 3 comments
Open

VQGanVAE resolution and channels hard coded #438

rbazin opened this issue Aug 1, 2022 · 3 comments

Comments

@rbazin
Copy link

rbazin commented Aug 1, 2022

Hello, in the module, in VQGanVAE class, self.resolution and self.channels are hard coded, whereas you could easily set them with

self.image_size = int(config.model.params.ddconfig.resolution)
self.channels = int(config.model.params.ddconfig.in_channels)

Can you change that please ?

Best

@lucidrains
Copy link
Owner

@rbazin Hi Romain, could you point me where in the code this is? you may have opened an issue in the wrong repository

@rbazin
Copy link
Author

rbazin commented Aug 4, 2022

Hello,

Sure, it's in DALLE-pytorch/dalle_pytorch/vae.py lines 190 and 191 in VQGanVAE class (resolution and image_size attributes)

Best regards

@lucidrains
Copy link
Owner

@rbazin ohh, those cannot be changed because we are using pretrained models from taming transformers out of Heidelberg

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

No branches or pull requests

2 participants