2019-06-24 20:11:30 +08:00
|
|
|
MMCV
|
2018-10-12 13:07:35 +08:00
|
|
|
====
|
|
|
|
|
2020-05-05 12:02:33 +08:00
|
|
|
.. image:: https://img.shields.io/pypi/v/mmcv
|
|
|
|
:target: https://pypi.org/project/mmcv
|
|
|
|
|
2020-05-14 16:41:40 +08:00
|
|
|
.. image:: https://github.com/open-mmlab/mmcv/workflows/build/badge.svg
|
|
|
|
:target: https://github.com/open-mmlab/mmcv/actions
|
2018-10-12 13:07:35 +08:00
|
|
|
|
|
|
|
.. image:: https://codecov.io/gh/open-mmlab/mmcv/branch/master/graph/badge.svg
|
|
|
|
:target: https://codecov.io/gh/open-mmlab/mmcv
|
|
|
|
|
|
|
|
.. image:: https://img.shields.io/github/license/open-mmlab/mmcv.svg
|
|
|
|
:target: https://github.com/open-mmlab/mmcv/blob/master/LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
Introduction
|
|
|
|
------------
|
|
|
|
|
2019-06-24 20:11:30 +08:00
|
|
|
MMCV is a foundational python library for computer vision research and supports many
|
|
|
|
research projects in MMLAB, such as `MMDetection <https://github.com/open-mmlab/mmdetection>`_
|
|
|
|
and `MMAction <https://github.com/open-mmlab/mmaction>`_.
|
2018-10-12 13:07:35 +08:00
|
|
|
|
|
|
|
It provides the following functionalities.
|
|
|
|
|
|
|
|
- Universal IO APIs
|
2020-06-28 23:15:47 +08:00
|
|
|
- Image/Video processing
|
2018-10-12 13:07:35 +08:00
|
|
|
- Image and annotation visualization
|
|
|
|
- Useful utilities (progress bar, timer, ...)
|
2018-10-13 23:14:58 +08:00
|
|
|
- PyTorch runner with hooking mechanism
|
2018-10-12 13:07:35 +08:00
|
|
|
- Various CNN architectures
|
2020-06-28 23:15:47 +08:00
|
|
|
- High-quality implementation of common CUDA ops
|
2018-10-12 13:07:35 +08:00
|
|
|
|
|
|
|
See the `documentation <http://mmcv.readthedocs.io/en/latest>`_ for more features and usage.
|
|
|
|
|
2020-04-26 00:21:54 +08:00
|
|
|
Note: MMCV requires Python 3.6+.
|
2020-02-15 15:09:36 +08:00
|
|
|
|
2018-10-12 13:07:35 +08:00
|
|
|
|
|
|
|
Installation
|
|
|
|
------------
|
|
|
|
|
|
|
|
Try and start with
|
|
|
|
|
|
|
|
.. code::
|
|
|
|
|
|
|
|
pip install mmcv
|
|
|
|
|
|
|
|
|
|
|
|
or install from source
|
|
|
|
|
|
|
|
.. code::
|
|
|
|
|
|
|
|
git clone https://github.com/open-mmlab/mmcv.git
|
|
|
|
cd mmcv
|
2019-07-31 02:33:58 +08:00
|
|
|
pip install -e .
|
2019-11-21 23:34:26 +08:00
|
|
|
|
2020-07-07 01:00:37 +08:00
|
|
|
If you are on macOS, replace the last command with
|
|
|
|
|
|
|
|
.. code::
|
|
|
|
|
|
|
|
CC=lang CXX=clang++ CFLAGS='-stdlib=libc++' pip install -e .
|
|
|
|
|
2019-11-21 23:34:26 +08:00
|
|
|
Note: If you would like to use :code:`opencv-python-headless` instead of :code:`opencv-python`,
|
|
|
|
e.g., in a minimum container environment or servers without GUI,
|
2020-02-01 10:14:55 +08:00
|
|
|
you can first install it before installing MMCV to skip the installation of :code:`opencv-python`.
|