Open lord-lethris opened 8 months ago
Error occurred when executing MeshGraphormer-DepthMapPreprocessor:
"filename 'storages' not found"
File "F:\ComfyUI_windows_portable\ComfyUI\execution.py", line 155, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable\ComfyUI\execution.py", line 85, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable\ComfyUI\execution.py", line 78, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\node_wrappers\mesh_graphormer.py", line 84, in execute model = MeshGraphormerDetector.from_pretrained().to(model_management.get_torch_device()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\mesh_graphormer__init.py", line 16, in from_pretrained pipeline = MeshGraphormerMediapipe(args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\mesh_graphormer\pipeline.py", line 167, in init__ state_dict = torch.load(args.resume_checkpoint) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\serialization.py", line 1028, in load return _legacy_load(opened_file, map_location, pickle_module, pickle_load_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\serialization.py", line 1231, in _legacy_load return legacy_load(f) ^^^^^^^^^^^^^^ File "F:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\serialization.py", line 1117, in legacy_load tar.extract('storages', path=tmpdir) File "tarfile.py", line 2295, in extract File "tarfile.py", line 2302, in _get_extract_tarinfo File "tarfile.py", line 1985, in getmember
how to fix it?
Yes, It seems like a DirectML issue https://github.com/microsoft/DirectML/issues/400, and this should be solved in https://github.com/pytorch/pytorch/pull/95748 Maybe you can update your pytorch and DirectML first.
I have the latest Torch for ML
PS C:\Users\Lethris> pip show torch
Name: torch
Version: 2.0.0
Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration
Home-page: https://pytorch.org/
Author: PyTorch Team
Author-email: packages@pytorch.org
License: BSD-3
Location: d:\apps\python\python310\lib\site-packages
Requires: filelock, jinja2, networkx, sympy, typing-extensions
Required-by: accelerate, clip-interrogator, fairscale, kornia, lpips, open-clip-torch, peft, pytorch-lightning, simple-lama-inpainting, stanza, thop, timm, torch-directml, torchaudio, torchmetrics, torchsde, torchvision, ultralytics
PS C:\Users\Lethris>
They didn't solve this problem at all! you can test that with very simple code below.
import torch
import torch_directml
dml = torch_directml.device()
a2 = torch.tensor([1,2,3,4]).to(dml)
b2 = a.new([2,3,4,5])
Fortunatelly, we didn't use too much tensor.new
, and I changed that in another way.
Initially got the following error:
https://github.com/Fannovel16/comfyui_controlnet_aux/issues/172
However, I followed the code changes suggested in that thread, and now I get the following error:
(I suspect this is another DirectML issue caused by the lack of AMD support (not blaming you @Fannovel16 ))
Console output regarding error :