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

ValueError: math domain error #4

Open
sheldon606 opened this issue Oct 29, 2019 · 2 comments
Open

ValueError: math domain error #4

sheldon606 opened this issue Oct 29, 2019 · 2 comments

Comments

@sheldon606
Copy link

sheldon606 commented Oct 29, 2019

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

@tamarott
Copy link
Owner

tamarott commented Nov 5, 2019

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.

@ghost
Copy link

ghost commented Nov 6, 2019

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.+.

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