Theo-SAMINADIN-td / NukeDepthCrafter

DepthCrafter for Nuke allows you to generate temporally consistent Depth sequences inside Nuke
22 stars 0 forks source link

Nuke launch error #2

Open antiqrom opened 1 week ago

antiqrom commented 1 week ago

yXDIVLOCoG

Hello, got this error, help me pls

Theo-SAMINADIN-td commented 5 days ago

Hi @antiqrom , Could you describe a little more how you installed Depth Crafter and its dependencies?

From what I can see here, you have installed Torchvision. It could come from that.

For now, I can see two options:

  1. Your error seems similar to this issue, so you can try to install backports.lzma.
  2. Reinstall torch without torchvision, let's reinstall torch and uninstall torchvision: pip uninstall torch torchvision then pip install torch==2.0.1+cu118 --index-url https://download.pytorch.org/whl/cu118
Ireneyhy commented 2 days ago

i'm having the same issue. It seems the python shipped with nuke doesn't include the lzma module.

Traceback (most recent call last): File "/home/$USER/.nuke/menu.py", line 4, in from nukedc import UpdateBtn, CreateDCNode, GenerateDepthAction File "/opt/Nuke15.0v5/pythonextensions/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import return original_import(name, *args, kwargs) File "/home/$USER/.nuke/nukedc.py", line 2, in from DepthCrafterPlugin.utils import File "/opt/Nuke15.0v5/pythonextensions/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import return original_import(name, args, kwargs) File "/home/$USER/.nuke/DepthCrafterPlugin/utils.py", line 7, in from diffusers.training_utils import set_seed File "/opt/Nuke15.0v5/pythonextensions/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import return original_import(name, *args, kwargs) File "/home/$USER/PycharmProjects/DepthCrafter/.venv/lib/python3.10/site-packages/diffusers/training_utils.py", line 29, in from torchvision import transforms File "/opt/Nuke15.0v5/pythonextensions/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import return original_import(name, *args, *kwargs) File "/home/$USER/.local/lib/python3.10/site-packages/torchvision/init.py", line 10, in from torchvision import _meta_registrations, datasets, io, models, ops, transforms, utils # usort:skip File "/opt/Nuke15.0v5/pythonextensions/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import return original_import(name, args, kwargs) File "/home/$USER/.local/lib/python3.10/site-packages/torchvision/datasets/init.py", line 1, in from ._optical_flow import FlyingChairs, FlyingThings3D, HD1K, KittiFlow, Sintel File "/opt/Nuke15.0v5/pythonextensions/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import return original_import(name, *args, kwargs) File "/home/$USER/.local/lib/python3.10/site-packages/torchvision/datasets/_optical_flow.py", line 13, in from .utils import _read_pfm, verify_str_arg File "/opt/Nuke15.0v5/pythonextensions/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import return original_import(name, *args, *kwargs) File "/home/$USER/.local/lib/python3.10/site-packages/torchvision/datasets/utils.py", line 4, in import lzma File "/opt/Nuke15.0v5/pythonextensions/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import return original_import(name, args, kwargs) File "/opt/Nuke15.0v5/lib/python3.10/lzma.py", line 27, in from _lzma import File "/opt/Nuke15.0v5/pythonextensions/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import return original_import(name, args, **kwargs) ModuleNotFoundError: No module named '_lzma'