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

在windows上训练,报错No object named 'DiffIRS1Model' found in 'model' registry #42

Open
ney158 opened this issue Mar 18, 2024 · 4 comments

Comments

@ney158
Copy link

ney158 commented Mar 18, 2024

File "DiffIR/train.py", line 12, in
train_pipeline(root_path)
File "D:\project\Super_resolution\DiffIR-SRGAN\DiffIR\train_pipeline.py", line 126, in train_pipeline
model = build_model(opt)
File "D:\Users\15822\Anaconda3\envs\pytorch\lib\site-packages\basicsr\models_init_.py", line 26, in build_model
model = MODEL_REGISTRY.get(opt['model_type'])(opt)
File "D:\Users\15822\Anaconda3\envs\pytorch\lib\site-packages\basicsr\utils\registry.py", line 71, in get
raise KeyError(f"No object named '{name}' found in '{self._name}' registry!")
KeyError: "No object named 'DiffIRS1Model' found in 'model' registry!"

@Zj-BinXia
Copy link
Owner

I haven't encountered this problem before

@yanmengyi
Copy link

I have the same problem

@d-linlin
Copy link

d-linlin commented Jun 7, 2024

我遇到了同样的问题,请问你解决了吗

@Xia-zx
Copy link

Xia-zx commented Jun 24, 2024

试一下这个export PYTHONPATH=/path/to/your/project:$PYTHONPATH

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

5 participants