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

not registry #14

Closed
yly001 opened this issue Sep 2, 2022 · 1 comment
Closed

not registry #14

yly001 opened this issue Sep 2, 2022 · 1 comment

Comments

@yly001
Copy link

yly001 commented Sep 2, 2022

(pytorch-gpu) C:\ai-project\Awesome-Backbones-main>python tools/evaluation.py models/shufflenet/shufflenet_v2.py
tools/evaluation.py:1: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Loading Val_Epoch001-Acc100.000.pth

Traceback (most recent call last):
File "tools/evaluation.py", line 169, in
main()
File "tools/evaluation.py", line 146, in main
test_dataset = Mydataset(test_datas, val_pipeline)
File "C:\ai-project\Awesome-Backbones-main\utils\dataloader.py", line 16, in init
self.pipeline = Compose(self.cfg)
File "C:\ai-project\Awesome-Backbones-main\core\datasets\compose.py", line 23, in init
transform = build_from_cfg(transform, PIPELINES)
File "C:\ai-project\Awesome-Backbones-main\core\datasets\build.py", line 61, in build_from_cfg
f'{obj_type} is not in the {registry.name} registry')
KeyError: 'RandomHorizontalFlip is not in the pipeline registry'

@Fafa-DL
Copy link
Owner

Fafa-DL commented Sep 2, 2022

看这个报错是因为配置文件还是上一个版本而数据处理代码用的最新版本,你可以版本统一下。

@Fafa-DL Fafa-DL closed this as completed Jun 3, 2023
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