Skip to main content

Plug-and-play metric depth estimation for any camera (perspective, fisheye, 360°). Based on Depth Any Camera (CVPR 2025).

Project description

panodac

Metric depth estimation for any camera. Perspective, fisheye, 360° panorama.

Based on Depth Any Camera (CVPR 2025).

Installation

pip install panodac

Usage

import panodac

depth = panodac.predict("photo.jpg")
# depth is a numpy array (H, W) with metric depth in meters

Panorama Seam Blending

ERP panoramas wrap horizontally, but CNN padding can introduce a visible seam at the left/right boundary. By default, panodac applies a Poisson-based seam correction when a panorama is detected.

import panodac

# Default: seam correction enabled for panoramas
depth = panodac.predict("panorama.jpg")

# Disable seam correction if you want raw output
depth_raw = panodac.predict("panorama.jpg", fix_panorama_seam=False)

Models

Model Use Case Speed Quality
outdoor-resnet101 Outdoor Fast Good
outdoor-swinl Outdoor Slow Best
indoor-resnet101 Indoor Fast Good
indoor-swinl Indoor Slow Best

Models auto-download from HuggingFace on first use (~500MB each).

# Use a specific model
depth = panodac.predict("panorama.jpg", model="outdoor-swinl")

# List available models
print(panodac.list_models())
# ['outdoor-resnet101', 'outdoor-swinl', 'indoor-resnet101', 'indoor-swinl']

Documentation

See yz3440.github.io/panodac for full API reference and examples.

Credits

Based on Depth Any Camera (DAC) by Yuliang Guo et al.

@article{guo2025depthany,
  title={Depth Any Camera: Zero-Shot Metric Depth Estimation from Any Camera},
  author={Guo, Yuliang and Garg, Sparsh and Ren, Xuan and ElSayed, Mohamed and Guizilini, Vitor},
  journal={CVPR},
  year={2025},
}

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

panodac-0.1.1.tar.gz (12.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

panodac-0.1.1-py3-none-any.whl (38.3 kB view details)

Uploaded Python 3

File details

Details for the file panodac-0.1.1.tar.gz.

File metadata

  • Download URL: panodac-0.1.1.tar.gz
  • Upload date:
  • Size: 12.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for panodac-0.1.1.tar.gz
Algorithm Hash digest
SHA256 74af8e9f41eb9a3a28e7aa010bc512ce5cc9f0dc1efe3f6ea9efffb738f6b215
MD5 5a6e499b1d503ed07d88e6aeb7889e8a
BLAKE2b-256 c718b144fa76b14957687f9a028ddd4fde3fd09acabd64d50663c3b1a8df4a89

See more details on using hashes here.

Provenance

The following attestation bundles were made for panodac-0.1.1.tar.gz:

Publisher: publish.yml on yz3440/panodac

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file panodac-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: panodac-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 38.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for panodac-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ded8698f7484b10b0d5fa333300fe459226e20de58363ea7b4608e74de8224b
MD5 c5ea9b6501c63fdff891cbd7c0ff458a
BLAKE2b-256 1e55a92ed96a26d9fc42c05f2fd57b02a370f0a9edc5a137b191f699a6d364a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for panodac-0.1.1-py3-none-any.whl:

Publisher: publish.yml on yz3440/panodac

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page