dribnet / pixray

neural image generation
Other
402 stars 53 forks source link

bugfix: issue#18 cell count 0, num_resolutions #19

Closed EleaZhong closed 2 years ago

EleaZhong commented 2 years ago

Solution for the "init_image: init cell count is 0, this shouldn't happen. but it did?" bug when using this code

pixray.add_settings(size=[320,180], pixel_size=[320,180])

Added an if statement for get_num_resolutions(), when not VQGAN it would not reduce size of the output. Added a warning for pixeldrawer, if input size is smaller than pixel_size, pixel_size will auto resize down to size.

dribnet commented 2 years ago

fixes #18