tamarott / SinGAN

Official pytorch implementation of the paper: "SinGAN: Learning a Generative Model from a Single Natural Image"
https://tamarott.github.io/SinGAN.htm
Other
3.3k stars 612 forks source link

Question About the adjust_scales2image function in functions.py #49

Open chenzeyin9867 opened 4 years ago

chenzeyin9867 commented 4 years ago

I can not figuer out that this functions is doing , what does the param scale2stop means?

tamarott commented 4 years ago

the function calculates the scale factor closest as possible to --scale_factor such that the image at the coarsest scale will be of size --min_size and at the finest scale of size --max_size. scale2stop is the number of the needed pyramid levels to reach --max_size

chenzeyin9867 commented 4 years ago

OK,I got it ,thank u so much