skillfed

mmcv

OpenMMLab Computer Vision Foundation

mmcv v2.2.0 100.3K downloads/30d#12,989 on PyPI6,465
Permissive license AGING released

What it is and what it does

MMCV is a foundational library maintained by OpenMMLab for computer vision research and applications. It provides core utilities for image and video processing, data transformation pipelines, visualization of images and annotations, standard CNN architectures, and high-performance implementations of common CPU and CUDA operations. The library is designed to be a building block for computer vision projects rather than a complete end-to-end framework.

Version 2.x (the current line) removed training-related components and added a dedicated data transformation module, shifting focus toward being a lightweight vision utility layer. Installation requires PyTorch to be pre-installed and may require building from source if a pre-built wheel is not available for your specific PyTorch and CUDA versions. The package supports Python 3.7+ and runs on Linux, Windows, and macOS.

Use it for:

  • Build custom computer vision pipelines that need efficient image I/O, resizing, and annotation visualization.
  • Integrate optimized CUDA operations for image processing into deep learning training loops.
  • Prototype CNN-based models using standard architectures provided by the library.
  • Process and transform image datasets with the data transformation module before feeding to models.
  • Visualize detection or segmentation results on images and videos during development and evaluation.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

MMCV is a foundational library for computer vision that provides image and video processing, visualization, data transformation, CNN architectures, and optimized CPU/CUDA operations.

Yes, with conditions. MMCV is a mature, widely-used foundation library (6465 GitHub stars, top 15000 PyPI packages) with no known vulnerabilities and permissive licensing. However, install it only if you need its specific utilities—high install friction (source builds are common), aging maintenance (842 days since last release), and no runtime dependencies mean you should verify that its image processing, CNN architectures, or CUDA ops are actually required for your project rather than using PyTorch or OpenCV directly.

Install

mmcv on PyPI

pip

pip install mmcv

uv

uv add mmcv

poetry

poetry add mmcv

Installing mmcv

Before you install

High install friction: the package requires PyTorch to be pre-installed and may need to build from source if a pre-built wheel matching your PyTorch and CUDA versions is unavailable. Maintenance status is aging—last release was 842 days ago, though the repository remains active with recent commits.

License in practice

Licensed under Apache 2.0 (permissive), though the documentation notes that some specific operations within the library carry other licenses; commercial users should review LICENSES.md for details.

Quickstart

pip install -U openmim
mim install mmcv

import mmcv
# Use vision utilities, e.g., mmcv.imread(), mmcv.imwrite()

PyTorch must be installed first; for Apple Silicon users, PyTorch 1.13+ is required. Pre-built wheels may not exist for all PyTorch/CUDA combinations, requiring source compilation.

Verify before relying

  • Whether the aging maintenance status (842 days since release) affects stability or feature completeness for current deep learning workflows.
  • Specific performance characteristics of the CUDA ops compared to alternatives or native PyTorch implementations.
  • Whether mmcv-lite (the lite variant without CUDA ops) is a viable alternative for projects that do not require GPU acceleration.

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.7)
Install friction high — source build required
Runtime dependencies none
Maintenance aging — 842 days since the last release
Last repo commit
First released
Downloads 100,349/month — #12,989 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: mmcv-2.2.0.tar.gz

Keywords: computer, vision

Development Status :: 4 - BetaLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Utilities

Tags

computer vision foundation libraryimage processing and transformationCNN architectures and opsvideo processing utilitiesdeep learning vision toolkitCUDA optimized vision opsannotation visualization
computer-visiondeep-learning-foundationcuda-ops

More Utilities packages