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

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.0.tar.gz (4.0 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.0-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: panodac-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 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.0.tar.gz
Algorithm Hash digest
SHA256 2cf827201909ae54a59e3d1d0695d081e2096a2d0bbaac6af39c62b3b11628c8
MD5 b20b521d1028665567d065c8f734ccda
BLAKE2b-256 5c55c186e8487c2eda8573accbe3a69c2ce99293c0f5b5e1421e8ff84579b6a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for panodac-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: panodac-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 34.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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c6a47bfaa11e17bfef4c61d5cce6e8153683619b7f421405be2388432c4d7c2
MD5 ea8843618ad876f51fc32299fa13d5ee
BLAKE2b-256 f8c533c11ec219026d5386c97402988bee2d261ec82fd649eb954b14289341ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for panodac-0.1.0-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