Skip to content

DepthCrafter for Nuke allows you to generate temporally consistent Depth sequences inside Nuke

Notifications You must be signed in to change notification settings

Theo-SAMINADIN-td/NukeDepthCrafter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DepthCrafter for Nuke



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



DemoNukeDC.mov

💡 Extra features

  • Support ImgtoImg, ImgtoVid, VidtoVid, VidtoImg
  • Frame range
  • EXR Sequence export
  • EXR Sequence as input

🗒️ Requirements

According to Nuke v15 Third-Party Libraries and Fonts

🛠️ Installation

1. Clone this repo into your .nuke (by default C:\Users\%UserProfile%\.nuke) :

git clone https://github.com/Theo-SAMINADIN-td/NukeDepthCrafter.git

Or Download this repo as ZIP file and extract it in your .nuke

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,

  • Option 1: Install or reinstall Python 3.10.10 with "Add Python to environment variables" checked. You should now see in Environment Variables, Paths to Python310.

  • Option 2: Add paths manually. Check where Python is installed. Python is typically installed at "C:\Users\%UserProfile%\AppData\Local\Programs\Python\Python310"
    Copy your path and add the two Python paths, click on "New": first "path\to\Python310", second "path\to\Python310\Scripts". Move them both to the top.


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

  • Option 1: Create a virtual environment (recommended)
    Create a folder where you want and copy its path. In the Command Prompt type: python -m venv /path/to/new/virtual/environment then /path/to/new/virtual/environment/Scripts/activate.bat the name of your VENV should appears on the left. Go to the next step

  • Option 2: Working directly in a Python Environment. Go to the next step

C. Dependencies installation


Pytorch/Cuda and xformers
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!

About

DepthCrafter for Nuke allows you to generate temporally consistent Depth sequences inside Nuke

Resources

Stars

Watchers

Forks

Languages