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 #38

Open
Yuri6037 opened this issue Nov 24, 2021 · 4 comments
Open

ImportError #38

Yuri6037 opened this issue Nov 24, 2021 · 4 comments

Comments

@Yuri6037
Copy link

Yuri6037 commented Nov 24, 2021

Your network does not run on my research machine:

Traceback (most recent call last):
  File "basicsr/demo.py", line 10, in <module>
    from basicsr.models import create_model
ImportError: cannot import name 'create_model'

EDIT: Just tried on my local computer (RTX 3060) different error:

Traceback (most recent call last):
  File "/home/X/HINet/basicsr/demo.py", line 10, in <module>
    from basicsr.models import create_model
ModuleNotFoundError: No module named 'basicsr'
@mexthecat
Copy link

maybe you have forgotten: "python setup.py develop --no_cuda_ext"

@Yuri6037
Copy link
Author

I've got the software to run on my RTX 3060 by moving main.py outside of the basicsr directory and by implementing image decomposition to avoid VRAM overload (my RTX only has 6Gb of VRAM).

On the remote machine according to some Python Matrix channel it's unfixable: the problem is because you've named the directory basicsr which conflicts with the module I have installed (also named basicsr).

@mayorx
Copy link
Collaborator

mayorx commented Dec 2, 2021

Hi, Yuri6037,

Thanks, and you could try export PYTHONPATH=path_to_the_HINet_folder in your bash before run basicsr/demo.py. It might be helpful.

@dante1024
Copy link

maybe you have forgotten: "python setup.py develop --no_cuda_ext"

What is the operation of "python setup.py develop --no_cuda_ext" used for?

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

4 participants