style-based-gan-pytorch icon indicating copy to clipboard operation
style-based-gan-pytorch copied to clipboard

about the image size

Open Yuchen-Hou0210 opened this issue 3 years ago • 4 comments

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?

Yuchen-Hou0210 avatar Jan 09 '22 15:01 Yuchen-Hou0210

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

rosinality avatar Jan 10 '22 06:01 rosinality

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。

Yuchen-Hou0210 avatar Jan 10 '22 15:01 Yuchen-Hou0210

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.

rosinality avatar Jan 11 '22 15:01 rosinality

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

Yuchen-Hou0210 avatar Jan 12 '22 13:01 Yuchen-Hou0210