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

Next Frame Prediction functions.gcd deprecation #11

Open
JohnENoonan opened this issue Jul 31, 2023 · 0 comments
Open

Next Frame Prediction functions.gcd deprecation #11

JohnENoonan opened this issue Jul 31, 2023 · 0 comments

Comments

@JohnENoonan
Copy link

Hello, issues don't seem to be enabled on the pix2pixHD fork so I hope it is ok to write here. functions.gcd(a,b) has been deprecated and I just encountered an error when running.
The lines https://github.com/dvschultz/pix2pixHD/blob/video/train_video.py#L10-L11 can be updated to:

import math
def lcm(a,b): return abs(a * b)/math.gcd(a,b) if a and b else 0

Thank you for this awesome resource!

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

1 participant