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

Output image is the same as input image on Colab as of today? #72

Closed
rayanarman opened this issue Nov 17, 2021 · 2 comments
Closed

Output image is the same as input image on Colab as of today? #72

rayanarman opened this issue Nov 17, 2021 · 2 comments

Comments

@rayanarman
Copy link

rayanarman commented Nov 17, 2021

Has some dependency broken GPEN on colab?
Using your unmodified example notebook the input and output images are the same after processing, and no error message is generated.

Is anybody else having the same issue? - It was working just 24 hours ago but I can't see any updates to the code.

Can somebody test the colab (make sure to delete the pre-generated results first) and see if this is not just me?

UPDATE:

This is weird - I think it's something to do with /GPEN/face_model/op/upfirdn2d.cpp and the connected python files. If i run the code with inline python code it has worked, but if i call the script like ... SHELL> python face_enhancement.py , it doesn't compile the cpp and bypasses it in the result generated.

@yangxy
Copy link
Owner

yangxy commented Nov 19, 2021

You can simply load pre-compiled libs by commenting load() and uncommenting upfirdn2d_op = _import_module_from_library('upfirdn2d', '/tmp/torch_extensions/upfirdn2d', True) in upfirdn2d.py. Replace /tmp/torch_extensions/upfirdn2d if necessary.

@rayanarman
Copy link
Author

You can simply load pre-compiled libs by commenting load() and uncommenting upfirdn2d_op = _import_module_from_library('upfirdn2d', '/tmp/torch_extensions/upfirdn2d', True) in upfirdn2d.py. Replace /tmp/torch_extensions/upfirdn2d if necessary.

Thanks for the reply! I tried the above but then it cannot find the library at all as the location provided doesn't exist. I think it's a intermittent colab issue with the JIT compliler - it sometimes just hangs. I got it to work in the end by running the compilation scripts separately before hand. Will update here if I have issues again. Thanks again

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