Closed flycocke closed 4 months ago
啊,这个估计比较复杂了,我可能得编译一下新版PyTorch3D(之后测试和debug不知道要花多久,也不保证一定能用,因为3D-Pack的兼容性还在PyTorch 2.2.2)。
你可以先试试把PyTorch降级到 2.2.2,这个是一直能用的:
pip install --force-reinstall \
xformers==0.0.25.post1 torchvision torchaudio \
--index-url https://download.pytorch.org/whl/cu121 \
--extra-index-url https://pypi.org/simple
解决了,谢谢,不过3dpack又更新了,LinuxWheels 需要重新编译了, Cannot import /root/ComfyUI/custom_nodes/ComfyUI-3D-Pack module for custom nodes: No module named 'TriplaneGaussian', 今天新推送一个过来,看样子还是得分版本号获取才行
I speak only in English, but it seems like the problem with the same pack, so here is my error with ComfyUI-3D-Pack
.
And I am a newbie with docker, so how to make it to install missing things into the image?
2024-07-08 13:09:27 comfyui | Traceback (most recent call last):
2024-07-08 13:09:27 comfyui | File "/home/runner/ComfyUI/nodes.py", line 1907, in load_custom_node
2024-07-08 13:09:27 comfyui | module_spec.loader.exec_module(module)
2024-07-08 13:09:27 comfyui | File "<frozen importlib._bootstrap_external>", line 940, in exec_module
2024-07-08 13:09:27 comfyui | File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
2024-07-08 13:09:27 comfyui | File "/home/runner/ComfyUI/custom_nodes/ComfyUI-3D-Pack/__init__.py", line 47, in <module>
2024-07-08 13:09:27 comfyui | module = importlib.import_module(f".{nodes_filename}", package=__name__)
2024-07-08 13:09:27 comfyui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-08 13:09:27 comfyui | File "/usr/lib64/python3.11/importlib/__init__.py", line 126, in import_module
2024-07-08 13:09:27 comfyui | return _bootstrap._gcd_import(name[level:], package, level)
2024-07-08 13:09:27 comfyui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-08 13:09:27 comfyui | File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
2024-07-08 13:09:27 comfyui | File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
2024-07-08 13:09:27 comfyui | File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
2024-07-08 13:09:27 comfyui | File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
2024-07-08 13:09:27 comfyui | File "<frozen importlib._bootstrap_external>", line 940, in exec_module
2024-07-08 13:09:27 comfyui | File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
2024-07-08 13:09:27 comfyui | File "/home/runner/ComfyUI/custom_nodes/ComfyUI-3D-Pack/nodes.py", line 54, in <module>
2024-07-08 13:09:27 comfyui | from TriplaneGaussian.triplane_gaussian_transformers import TGS
2024-07-08 13:09:27 comfyui | File "/home/runner/ComfyUI/custom_nodes/ComfyUI-3D-Pack/Gen_3D_Modules/TriplaneGaussian/triplane_gaussian_transformers.py", line 6, in <module>
2024-07-08 13:09:27 comfyui | from TriplaneGaussian.models.image_feature import ImageFeature
2024-07-08 13:09:27 comfyui | File "/home/runner/ComfyUI/custom_nodes/ComfyUI-3D-Pack/Gen_3D_Modules/TriplaneGaussian/models/image_feature.py", line 7, in <module>
2024-07-08 13:09:27 comfyui | from ..utils.ops import compute_distance_transform
2024-07-08 13:09:27 comfyui | File "/home/runner/ComfyUI/custom_nodes/ComfyUI-3D-Pack/Gen_3D_Modules/TriplaneGaussian/utils/ops.py", line 8, in <module>
2024-07-08 13:09:27 comfyui | from pytorch3d import io
2024-07-08 13:09:27 comfyui | File "/usr/lib64/python3.11/site-packages/pytorch3d/io/__init__.py", line 8, in <module>
2024-07-08 13:09:27 comfyui | from .obj_io import load_obj, load_objs_as_meshes, save_obj
2024-07-08 13:09:27 comfyui | File "/usr/lib64/python3.11/site-packages/pytorch3d/io/obj_io.py", line 22, in <module>
2024-07-08 13:09:27 comfyui | from pytorch3d.renderer import TexturesAtlas, TexturesUV
2024-07-08 13:09:27 comfyui | File "/usr/lib64/python3.11/site-packages/pytorch3d/renderer/__init__.py", line 7, in <module>
2024-07-08 13:09:27 comfyui | from .blending import (
2024-07-08 13:09:27 comfyui | File "/usr/lib64/python3.11/site-packages/pytorch3d/renderer/blending.py", line 10, in <module>
2024-07-08 13:09:27 comfyui | from pytorch3d import _C
2024-07-08 13:09:27 comfyui | ImportError: /usr/lib64/python3.11/site-packages/pytorch3d/_C.cpython-311-x86_64-linux-gnu.so: undefined symbol: _ZN3c104cuda9SetDeviceEi
2024-07-08 13:09:27 comfyui |
2024-07-08 13:09:27 comfyui | Cannot import /home/runner/ComfyUI/custom_nodes/ComfyUI-3D-Pack module for custom nodes: /usr/lib64/python3.11/site-packages/pytorch3d/_C.cpython-311-x86_64-linux-gnu.so: undefined symbol: _ZN3c104cuda9SetDeviceEi
2024-07-08 13:09:29 comfyui | Adding /home/runner/ComfyUI/custom_nodes to sys.path
pip install --force-reinstall \ xformers==0.0.25.post1 torchvision torchaudio \ --index-url https://download.pytorch.org/whl/cu121 \ --extra-index-url https://pypi.org/simple
xformers var == 0.0.25.post1
Fixed in 2e76749
@flycocke 刚基于 PyTorch 2.3 编译了新版,更新镜像即可。
@Corshi I have compiled new version of wheels for 3D-Pack. Just update to the latest Docker image, it should work.
先等等吧,上游今天要有大更新
Forget about that, the 3D-Pack will have a major update today.
https://github.com/MrForExample/ComfyUI-3D-Pack/issues/192#issuecomment-2214382198
搞定了,用新版镜像就完事了嗷
Done Update!
[Impact Pack] Wildcards loading done. Traceback (most recent call last): File "/root/ComfyUI/nodes.py", line 1906, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/root/ComfyUI/custom_nodes/ComfyUI-3D-Pack/init.py", line 44, in
module = importlib.import_module(f".{nodes_filename}", package=name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/root/ComfyUI/custom_nodes/ComfyUI-3D-Pack/nodes.py", line 52, in
from .algorithms.dmtet import DMTetMesh
File "/root/ComfyUI/custom_nodes/ComfyUI-3D-Pack/algorithms/dmtet.py", line 6, in
from pytorch3d.loss import chamfer_distance, mesh_laplacian_smoothing
File "/usr/lib64/python3.11/site-packages/pytorch3d/loss/init.py", line 8, in
from .chamfer import chamfer_distance
File "/usr/lib64/python3.11/site-packages/pytorch3d/loss/chamfer.py", line 11, in
from pytorch3d.ops.knn import knn_gather, knn_points
File "/usr/lib64/python3.11/site-packages/pytorch3d/ops/init.py", line 7, in
from .ball_query import ball_query
File "/usr/lib64/python3.11/site-packages/pytorch3d/ops/ball_query.py", line 10, in
from pytorch3d import _C
ImportError: /usr/lib64/python3.11/site-packages/pytorch3d/_C.cpython-311-x86_64-linux-gnu.so: undefined symbol: _ZN3c104cuda9SetDeviceEi
Cannot import /root/ComfyUI/custom_nodes/ComfyUI-3D-Pack module for custom nodes: /usr/lib64/python3.11/site-packages/pytorch3d/_C.cpython-311-x86_64-linux-gnu.so: undefined symbol: _ZN3c104cuda9SetDeviceEi Workspace manager - Openning file hash dict