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

FileNotFoundError: ./models/dwpose/dw-ll_ucoco_384.pth can not be found. #165

Open
Asukaandjst opened this issue Aug 13, 2024 · 2 comments

Comments

@Asukaandjst
Copy link

(musetalk) H:\MuseTalk\MuseTalk> python -m scripts.inference --inference_config configs/inference/test.yaml
please download ffmpeg-static and export to FFMPEG_PATH.
For example: export FFMPEG_PATH=/musetalk/ffmpeg-4.4-amd64-static
Loads checkpoint by local backend from path: ./models/dwpose/dw-ll_ucoco_384.pth
Traceback (most recent call last):
File "H:\miniconda3\envs\musetalk\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "H:\miniconda3\envs\musetalk\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "H:\MuseTalk\MuseTalk\scripts\inference.py", line 13, in
from musetalk.utils.preprocessing import get_landmark_and_bbox,read_imgs,coord_placeholder
File "H:\MuseTalk\MuseTalk\musetalk\utils\preprocessing.py", line 19, in
model = init_model(config_file, checkpoint_file, device=device)
File "H:\miniconda3\envs\musetalk\lib\site-packages\mmpose\apis\inference.py", line 110, in init_model
ckpt = load_checkpoint(model, checkpoint, map_location='cpu')
File "H:\miniconda3\envs\musetalk\lib\site-packages\mmengine\runner\checkpoint.py", line 636, in load_checkpoint
checkpoint = _load_checkpoint(filename, map_location, logger)
File "H:\miniconda3\envs\musetalk\lib\site-packages\mmengine\runner\checkpoint.py", line 548, in _load_checkpoint
return CheckpointLoader.load_checkpoint(filename, map_location, logger)
File "H:\miniconda3\envs\musetalk\lib\site-packages\mmengine\runner\checkpoint.py", line 330, in load_checkpoint
return checkpoint_loader(filename, map_location)
File "H:\miniconda3\envs\musetalk\lib\site-packages\mmengine\runner\checkpoint.py", line 346, in load_from_local
raise FileNotFoundError(f'{filename} can not be found.')
FileNotFoundError: ./models/dwpose/dw-ll_ucoco_384.pth can not be found.

@Asukaandjst
Copy link
Author

But in fact it does exist in the path \musetalk\models\dwpose

@zhangziliang04
Copy link

相对路径的问题,你把models的位置,上提一级,到项目的跟文件夹即可。

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