Unified deep learning models for Computer Vision.
0
stars
42
commits
Python
primary language
Mar 23, 2026
updated
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.
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:
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.
UniCV aims to support vision systems that are:
VisionModule-based modules.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.
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.
| Model | Paper | Input → Output | Pretrained |
|---|---|---|---|
| DepthPro | Apple, 2024 | RGB → Depth | DepthProModel.from_pretrained() |
| Depth Anything 3 | ByteDance, 2025 | RGB → Depth | 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.
| 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 |
| 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 |
Contributions are welcome! See CONTRIBUTING.md for guidelines on adding new models, writing tests, and submitting pull requests.
This project follows the Contributor Covenant. By participating, you agree to uphold a welcoming and respectful environment for everyone.
MIT — see LICENSE.
42 commits
Python
100.0%
Unified deep learning models for Computer Vision.
0
stars
42
commits
Python
primary language
Mar 23, 2026
updated
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.
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:
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.
UniCV aims to support vision systems that are:
VisionModule-based modules.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.
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.
| Model | Paper | Input → Output | Pretrained |
|---|---|---|---|
| DepthPro | Apple, 2024 | RGB → Depth | DepthProModel.from_pretrained() |
| Depth Anything 3 | ByteDance, 2025 | RGB → Depth | 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.
| 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 |
| 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 |
Contributions are welcome! See CONTRIBUTING.md for guidelines on adding new models, writing tests, and submitting pull requests.
This project follows the Contributor Covenant. By participating, you agree to uphold a welcoming and respectful environment for everyone.
MIT — see LICENSE.
42 commits
Python
100.0%