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

使用自己的reid模型,测试报错 #26

Open
circlety opened this issue Feb 17, 2022 · 2 comments
Open

使用自己的reid模型,测试报错 #26

circlety opened this issue Feb 17, 2022 · 2 comments

Comments

@circlety
Copy link

作者您好,我使用自己在 reid-strong-baseline 训练得到的模型,运行search.py时报错,报错信息:
Traceback (most recent call last):

File "E:\person_search_demo\search.py", line 228, in
output=opt.output)

File "E:\person_search_demo\search.py", line 38, in detect
reidModel.load_param(reidCfg.TEST.WEIGHT)

File "E:\person_search_demo\reid\modeling\baseline.py", line 63, in load_param
param_dict = torch.load(trained_path)

File "d:\anaconda3\envs\torch\lib\site-packages\torch\serialization.py", line 387, in load
return _load(f, map_location, pickle_module, **pickle_load_args)

File "d:\anaconda3\envs\torch\lib\site-packages\torch\serialization.py", line 574, in _load
result = unpickler.load()

ModuleNotFoundError: No module named 'modeling'
请问可以提供一些解决的建议吗?

@sgg22
Copy link

sgg22 commented Mar 8, 2022

同样的问题

@xiaoxinchudian
Copy link

一样,请问解决了嘛

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

3 participants