SinGAN icon indicating copy to clipboard operation
SinGAN copied to clipboard

ValueError: math domain error

Open sheldon606 opened this issue 6 years ago • 2 comments

python main_train.py --input_name 33039_LR.png

('Random Seed: ', 5309) functions.adjust_scales2image(real, opt) in adjust_scales2image opt.num_scales = int((math.log(math.pow(opt.min_size / (real_.shape[2]), 1), opt.scale_factor_init))) + 1 ValueError: math domain error

sheldon606 avatar Oct 29 '19 13:10 sheldon606

Thank you for letting me know about this. I don't know the reason for this error, didn't happen on my side. I updated a requirement file, maybe this could help.

tamarott avatar Nov 05 '19 16:11 tamarott

python main_train.py --input_name 33039_LR.png

('Random Seed: ', 5309) functions.adjust_scales2image(real, opt) in adjust_scales2image opt.num_scales = int((math.log(math.pow(opt.min_size / (real_.shape[2]), 1), opt.scale_factor_init))) + 1 ValueError: math domain error

Try to run this project on Python3.+, I got the same problem on Python 2.+, but it works well on Python 3.+.

ghost avatar Nov 06 '19 02:11 ghost