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

ImportError #7

Open
payphone131 opened this issue Nov 27, 2024 · 0 comments
Open

ImportError #7

payphone131 opened this issue Nov 27, 2024 · 0 comments

Comments

@payphone131
Copy link

Hello, I run into this problem when trying to reproduce your code. Could you please tell me how to solve it? There is no RGFGradientEstimator in image_hijacks/components/grad.py. There is only GradientEstimator in image_hijacks/components/grad.py.

ImportError while importing test module '/data/xwz/image-hijacks/tests/components/test_grad.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../anaconda3/envs/overall/lib/python3.10/importlib/init.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/components/test_grad.py:7: in
from image_hijacks.components.grad import (
E ImportError: cannot import name 'RGFGradientEstimator' from 'image_hijacks.components.grad' (/data/xwz/image-hijacks/image_hijacks/components/grad.py)

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