MimicMotionGetPoses加载hr16/yolox-onnx错误,需要联网下载,报错如下:
具体为:
Error occurred when executing MimicMotionGetPoses:
An error happened while trying to locate the files on the Hub and we cannot find the appropriate snapshot folder for the specified revision on the local disk. Please check your internet connection and try again.
File "D:\ComfyUI-aki-v1.3\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\ComfyUI-aki-v1.3\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "D:\ComfyUI-aki-v1.3\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-MimicMotionWrapper-main\nodes.py", line 393, in process
snapshot_download(repo_id="hr16/yolox-onnx",
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\huggingface_hub\utils\_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\huggingface_hub\_snapshot_download.py", line 236, in snapshot_download
raise LocalEntryNotFoundError(
我明明下载了模型,放到了统一的模型文件夹下,为什么还要下载的呢?
查看报错的nodes.py第400行,获取的竟然是节点目录,也就是说你需要把模型放到ComfyUI-aki-v1.6\ComfyUI\custom_nodes\
ComfyUI-MimicMotionWrapper\models\DWPose\
dw-ll_ucoco_384_bs5.torchscript.pt 这个目录下拜访才能访问。
到了这一步,小白把
dw-ll_ucoco_384_bs5.torchscript.pt和yolox_l.torchscript.pt两个模型放到ComfyUI\custom_nodes\
ComfyUI-MimicMotionWrapper\models\DWPose下面就好了。
不过小编还要更进一步,就是不想把模型乱放,发现这段代码图省事没有使用folder_paths.models_dir
注释掉改成模型目录:
运行一下,恭喜你,成功运行!