Open ffdown opened 6 months ago
refer to https://github.com/isl-org/MiDaS/issues/118#issuecomment-1807194924
please create a __init__.py
empty file in ComfyUI/models/midas/intel-isl_MiDaS_master/midas
directory.
or, reinstall midas:
pip uninstall midas,
pip install timm
I have solved this problem, just reinstall the midas library file
or, reinstall midas:
pip uninstall midas, pip install timm
thank you
https://github.com/isl-org/MiDaS/releases/download/v3/dpt_large_384.pt" to .\ComfyUI\models\midas\checkpoints\dpt_large_384.pt
File "E:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-0246\utils.py", line 381, in new_func res_value = old_func(final_args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 8532, in load_midas_model midas = torch.hub.load("intel-isl/MiDaS", midas_model, trust_repo=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\hub.py", line 566, in load model = _load_local(repo_or_dir, model, args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\hub.py", line 592, in _load_local hub_module = _import_module(MODULE_HUBCONF, hubconf_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\hub.py", line 106, in _import_module spec.loader.exec_module(module) File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "E:\AI\ComfyUI_windows_portable\ComfyUI\models\midas\intel-isl_MiDaS_master\hubconf.py", line 5, in
from midas.dpt_depth import DPTDepthModel
ModuleNotFoundError: No module named 'midas.dpt_depth'