Theo-SAMINADIN-td / NukeDepthCrafter

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

DepthCrafter for Nuke

[Depthcrafter by TENCENT](https://github.com/Tencent/DepthCrafter)

Adapted for Nuke by

[Theo SAMINADIN](https://github.com/Theo-SAMINADIN-td)



DepthCrafter for Nuke allows you to generate temporally consistent Depth sequences inside Nuke. See more examples here



https://github.com/user-attachments/assets/9414b4e5-d731-4d60-bf90-3f574fe03a24

💡 Extra features

🗒️ Requirements

According to Nuke v15 Third-Party Libraries and Fonts

Your tree should look like that



2. Download the Model from Tencent HF page and put it in .nuke\DepthCrafterPlugin

3. Install Dependencies:

A. Checking Python version


Open your Command Prompt and type Python and hit Enter.
If your python version is 3.10.10 go to next step. If it's not, Go to the System Environment Variables in your start menu > Environment Variables > "Path" Variable > hit "Edit".

If you see the paths to Python310 & Python310/Script, move them to the top. Go to the next step



If you don't see them,


Last check, open your Command Prompt then type Python and hit enter. You should have the right Python version, 3.10.10

B. Environment choices

pip install torch==2.0.1+cu118 --index-url https://download.pytorch.org/whl/cu118

Then

pip install -r path/to/.nuke/DepthCrafterPlugin/requirements.txt

Referring to requirements.txt

4. Set your Nuke files:

In init.py, add your path to where you installed the dependencies.

If you are working in a Virtual Environment, add nuke.pluginAddPath(r"path/to/your/venv/Lib/site-packages")

If you are working in a Python Environment, add nuke.pluginAddPath(r"path/to/Python310/Lib/site-packages")



❗If your .nuke folder path that is not C:\Users\%UserProfile%\.nuke, please change the unet_path by adding yours

👌 Launch Nuke!