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

Questions about testing #115

Open
zejiangL opened this issue May 3, 2024 · 4 comments
Open

Questions about testing #115

zejiangL opened this issue May 3, 2024 · 4 comments

Comments

@zejiangL
Copy link

zejiangL commented May 3, 2024

Hello, professor, thank you very much for the code you provided. I have a question. I followed the readme for everything, but when I run python main.py --test --previous_dir 'checkpoint/pretrained/351' -- When frames 351, Traceback (most recent call last) will always be reported:
File "E:\MHFormer-main\main.py", line 124, in
pre_dict = torch.load(model_path)
NameError: name 'model_path' is not defined Why is this?

@crazy-night
Copy link

Have you downloaded the pretrained model?

@wyclearnpy
Copy link

I have the same problem. Have you solved it? I have downloaded the pre-trained weights to the pretrained folder.This is my path:D:\files\MHFormer-main\MHFormer-main\checkpoint\pretrained\351\model_4294.pth

@zhangjinxiao134253
Copy link

I have the same problem. Have you solved it?

@zhangjinxiao134253
Copy link

hi! I have solved the problem. I changed the '/' in line 120 to Double slash, and the problem was solved. just like this:
if path.split('\\')[-1].startswith('model'):

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