b7b8cfbedd9b59a8c52102d844ca58d06f768c3a
ComfyUI-DAP
A ComfyUI extension for the Insta360 DAP (Depth Any Panorama) model.
Installation
- Clone this repository into your
ComfyUI/custom_nodesfolder. - 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
vitlis available. - precision: Choose between
fp16,fp32, andbf16. - 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
Languages
Python
100%