Skip to main content

UniCV

PyPI Latest Release CI License: MIT

UniCV is a unified, extensible framework for computer vision models that operate across heterogeneous input and output representations. It wraps state-of-the-art models — depth estimators, Gaussian splat predictors, mesh generators, and more — behind a single, composable VisionModule interface.


Philosophy

Modern computer vision has fragmented into dozens of incompatible APIs: each model ships with its own preprocessing, its own output format, and its own integration burden.

The architecture and design philosophy of UniCV is inspired by modular deep learning ecosystems such as pytorch and HuggingFace's transformers, as well as recent efforts toward foundation models and generalist perception systems in computer vision. Rather than prescribing fixed pipelines (e.g. RGB → Depth or RGB → Mesh), UniCV abstracts vision algorithms as composable transformations between representation spaces.

The core abstraction of UniCV is VisionModule, which defines a standardized interface for mapping any combination of visual input modalities to any combination of output modalities. These modalities include, but are not limited to:

  • RGB images
  • Depth maps
  • Point clouds
  • Meshes
  • Gaussian splats and other implicit or semi-implicit scene representations

Concrete vision algorithms—such as monocular depth estimation, RGB-to-point-cloud reconstruction, or RGB-D refinement—are implemented as subclasses of this abstract interface. Existing models available online (e.g. DepthPro, MiDaS, CDM, or point-cloud reconstruction networks) can be redefined within this framework without altering their internal logic, allowing them to be seamlessly integrated into a shared system.

UniCV is hence designed to accommodate the full spectrum of modern 3D perception: classical CNNs, ViT-based backbones, implicit neural representations, Gaussian splatting, and diffusion-based generation.

This abstraction enables UniCV to decouple input modality, latent processing, and output representation, encouraging reuse, composition, and extension of vision algorithms. Models may share encoders, latent spaces, or decoders, and can be combined or chained to support progressive or multi-stage reconstruction pipelines.

The conceptual motivation for UniCV is closely aligned with the emergence of foundation models for perception, where a single system is expected to reason across tasks, representations, and data sources. By enforcing a common interface at the representation level, UniCV facilitates cross-representation supervision, multi-task learning, and interoperability between otherwise incompatible vision methods.

Motivation

UniCV aims to support vision systems that are:

  1. Modality-agnostic, capable of ingesting arbitrary combinations of visual inputs (e.g. RGB, depth, point clouds) without architectural redesign.
  2. Representation-agnostic, able to emit multiple scene representations from a shared latent abstraction.
  3. Algorithm-agnostic, allowing existing and future computer vision models to be wrapped, extended, or replaced under a common interface.
  4. Composable, enabling complex pipelines to be constructed by chaining or jointly training multiple VisionModule-based modules.
  5. Extensible, supporting both classical CV algorithms and modern deep learning approaches, including implicit scene representations and neural rendering techniques.
  6. Foundation-ready, serving as an architectural substrate for training large, generalist vision models capable of cross-task and cross-representation transfer.

In addition to standard convolutional and Transformer-based architectures, UniCV is designed to accommodate emerging paradigms such as implicit neural representations, Gaussian splatting, and hybrid geometric–neural pipelines, enabling a unified experimental platform for next-generation 3D perception systems.


Quick Start

pip install unicv                  # core (torch only)
pip install unicv[pretrained]      # + huggingface_hub, timm, safetensors
from unicv.models.depth_anything_3 import DepthAnything3Model

model  = DepthAnything3Model.from_pretrained(variant="vit_l")
result = model(rgb=image_tensor)   # {Modality.DEPTH: (B, 1, H, W)}

Every model follows the same interface — only input_spec and output_modalities differ. See the Getting Started guide for all models.


Implemented Models

Model Paper Input → Output Pretrained
DepthPro Apple, 2024 RGB → Depth DepthProModel.from_pretrained()
Depth Anything 3 ByteDance, 2025 RGB / multi-view → Depth, optional Splat (vit_g) DepthAnything3Model.from_pretrained(variant=...)
Camera Depth Model ByteDance, 2025 RGB + Depth → Depth CameraDepthModel.from_pretrained(camera=...)
SHARP Apple, 2024 RGB → Splat SHARPModel.from_pretrained()
SimpleRecon Niantic, 2022 RGB (temporal) → Depth --

See the full model catalogue for planned models.


Documentation

Read the full documentation →

Document Description
Getting Started Installation, usage, pretrained weights
VisionModule Interface The core abstraction in detail
Building Blocks Shared decoders, heads, geometry utilities
Architecture High-level codebase map
Changelog Release notes
Model Guides
DepthPro Multi-scale patch-pyramid encoder walkthrough
Depth Anything 3 DINOv2 + DPT decoder walkthrough
Camera Depth Model Dual-ViT fusion walkthrough
SHARP Single-image Gaussian splat walkthrough
SimpleRecon Plane-sweep stereo walkthrough

Contributing

Contributions are welcome! See CONTRIBUTING.md for guidelines on adding new models, writing tests, and submitting pull requests.

Code of Conduct

This project follows the Contributor Covenant. By participating, you agree to uphold a welcoming and respectful environment for everyone.

License

MIT — see LICENSE.

Metadata

Release files for unicv 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unicv 1.0.1
File Size Uploaded Provenance Actions
unicv-1.0.1.tar.gz 139.3 kB Without provenance Details for unicv-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unicv 1.0.1
File Interpreter ABI Platform Actions
unicv-1.0.1-py3-none-any.whl Python 3 none any Details for unicv-1.0.1-py3-none-any.whl

Total release size: 197.0 kB

Release files / unicv-1.0.1.tar.gz

Download URL unicv-1.0.1.tar.gz
Size 139.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9e5583fabeb155f473380b043ba2d5c047bb2e0fca6ea0806d5158be80030c07
BLAKE2b-256 checksum
How to use checksums
c3d65bbb6526503add0b5d97af82be39ee6246f4440fef3a17189880cb537127
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / unicv-1.0.1-py3-none-any.whl

Download URL unicv-1.0.1-py3-none-any.whl
Size 57.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
78d87818cd3c4f95e1ff555b46b0221ba7b6176f36ca03c0f68c3b830cf3efdc
BLAKE2b-256 checksum
How to use checksums
991c404249636d0bf9251f783241e1d1373540e2d416a9e8802699a2bebd83d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for unicv 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page