ComfyUI-DAP

A ComfyUI extension for the Insta360 DAP (Depth Any Panorama) model.

Installation

  1. Clone this repository into your ComfyUI/custom_nodes folder.
  2. Install the required dependencies in your ComfyUI virtual environment:
# Example for Windows with the default venv
"S:/ComfyUI/venv/Scripts/python.exe" -m pip install -r requirements.txt

# IMPORTANT: You need xformers for optimal performance and compatibility
"S:/ComfyUI/venv/Scripts/python.exe" -m pip install torch torchvision xformers -U --index-url https://download.pytorch.org/whl/cu130

Nodes

DAP Loader

  • model_size: Currently only vitl is available.
  • precision: Choose between fp16, fp32, and bf16.
  • Downloads: Automatically downloads the model from HuggingFace on first use.

DAP Inference

  • image: Input panoramic image.
  • invert_output: Invert the depth map (standard for ComfyUI depth).
  • resize_input: Resizes to the model's preferred patch size (multiples of 14).

Testing

This plugin includes a pytest suite for headless verification.

"S:/ComfyUI/venv/Scripts/python.exe" -m pytest
S
Description
No description provided
Readme
61 KiB
Languages
Python 100%