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

size mismatch for block4.c2.weight #47

Open
sumorday opened this issue Aug 14, 2022 · 0 comments
Open

size mismatch for block4.c2.weight #47

sumorday opened this issue Aug 14, 2022 · 0 comments

Comments

@sumorday
Copy link

Dear Kwotsin:

Hi, When I use the dataset

LSUN-Bedroom | Train | 128 x 128

The data is 128x128 size, right?

So I changed the example file in https://github.com/kwotsin/mimicry/blob/master/examples/sngan_example.py

the original one it below:

# Define models and optimizers
netG = sngan.SNGANGenerator32().to(device)
netD = sngan.SNGANDiscriminator32().to(device)

I guess I have to change it into 128, that is:

netG = sngan.SNGANGenerator128().to(device)
netD = sngan.SNGANDiscriminator128().to(device)

But when I changed it to 128 , the error happened(size mismatch)
If I keep 32, the original one. the code can be running without any issues...
Did I missed anything? Looking forward to getting your feedback. Thank you in advance!!!

Best regards,
Edward

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

1 participant