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

about the image size #131

Open
Yuchen-Hou0210 opened this issue Jan 9, 2022 · 4 comments
Open

about the image size #131

Yuchen-Hou0210 opened this issue Jan 9, 2022 · 4 comments

Comments

@Yuchen-Hou0210
Copy link

i choose ffhq-dataset's thumbnails128x128. I'm curious about which parameters need to be modified?should the --max_size in train.py be modified? should the number of layers in model.py be modified, such as only 6 layers instead of 9 layers?

@rosinality
Copy link
Owner

You only need to adjust --max_size arguments. Number of layers will be adjusted accordingly.

@Yuchen-Hou0210
Copy link
Author

You only need to adjust --max_size arguments. Number of layers will be adjusted accordingly.

thank you very much!And I I have another question:what is the function of FusedDownsample and Fusedupsample ? Why we need it if the resolution is more than 64px, but not if the resolution is less than 64px? I'm a little confused。

@rosinality
Copy link
Owner

FusedUp(Down)sample is equivalent to conv + avgpool or nearest neighbor upsample + conv. In the official implementations it is used if resolution is larger than 64px as it is more performant at that resolutions. But I haven't measured the performance differences, though.

@Yuchen-Hou0210
Copy link
Author

FusedUp(Down)sample is equivalent to conv + avgpool or nearest neighbor upsample + conv. In the official implementations it is used if resolution is larger than 64px as it is more performant at that resolutions. But I haven't measured the performance differences, though.

ok! Thanks, it helps me a lot

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