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

Is it possible to configure Discriminator with image size other than 256? #29

Open
kgonia opened this issue Jun 11, 2023 · 0 comments
Open

Comments

@kgonia
Copy link

kgonia commented Jun 11, 2023

I tried to use StyleGANDiscriminatorPreTrainedModel with config having images siez 512 x 512 but I got this error:

vit_vqgan/modelin │
│ g_stylegan_disc.py:314 in __call__                                                               │
│                                                                                                  │
│   311 │   │   │   y = block(y)                                                                   │
│   312 │   │                                                                                      │
│   313 │   │   # final block running on 4x4 feature maps                                          │
│ ❱ 314 │   │   assert min(y.shape[1:3]) == 4                                                      │
│   315 │   │                                                                                      │
│   316 │   │   y = self.stddev_layer(y)                                                           │
│   317 │   │   y = self.conv_out(y)                                                               │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
UnfilteredStackTrace: AssertionError

Should I change smth more or it's not supported to change image size?

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