So I am trying to install this plug in which is built for Linux/Windows
~ I have managed to get it installed in venv with python 3.10, with torch 2.5.1 , I have the node loaded into to nuke I can create a bounding box and set files, but [create mask] in debugging script I get;
File “/Applications/Nuke15.1v5/Nuke15.1v5.app/Contents/MacOS/plugins/ENV_DIR/venv/lib/python3.10/site-packages/torch/cuda/init.py”, line 310, in _lazy_init
raise AssertionError(“Torch not compiled with CUDA enabled”)
AssertionError: Torch not compiled with CUDA enabled
~ Do I need to compile PyTorch myself with CUDA enabled?
~ Can I just swap in the SAM repo folder out in installation for the CPU version posted below.
This idea sounds valid.
Instead of installing another repository you could also check if the currently used one could also support CPU-only runs or MPS.
Your error shows you are trying to initialize CUDA on an unsupported platform:
File “/Applications/Nuke15.1v5/Nuke15.1v5.app/Contents/MacOS/plugins/ENV_DIR/venv/lib/python3.10/site-packages/torch/cuda/init.py”, line 310, in _lazy_init
raise AssertionError(“Torch not compiled with CUDA enabled”)
AssertionError: Torch not compiled with CUDA enabled
Could you explain where this call comes from and which part of your code tries to initialize CUDA, which is unsupported on Mac M3?