README.rst 1.73 KB
Newer Older
Kai Chen's avatar
Kai Chen committed
1
MMCV
2
3
====

Kai Chen's avatar
Kai Chen committed
4
5
6
.. image:: https://img.shields.io/pypi/v/mmcv
  :target: https://pypi.org/project/mmcv

7
8
.. image:: https://github.com/open-mmlab/mmcv/workflows/build/badge.svg
  :target: https://github.com/open-mmlab/mmcv/actions
9
10
11
12
13
14
15
16
17
18
19

.. 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
------------

Kai Chen's avatar
Kai Chen committed
20
21
22
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>`_.
23
24
25
26

It provides the following functionalities.

- Universal IO APIs
27
- Image/Video processing
28
29
- Image and annotation visualization
- Useful utilities (progress bar, timer, ...)
0xflotus's avatar
0xflotus committed
30
- PyTorch runner with hooking mechanism
31
- Various CNN architectures
32
- High-quality implementation of common CUDA ops
33
34
35

See the `documentation <http://mmcv.readthedocs.io/en/latest>`_ for more features and usage.

Cao Yuhang's avatar
Cao Yuhang committed
36
Note: MMCV requires Python 3.6+.
37

38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

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
Kai Chen's avatar
Kai Chen committed
55
    pip install -e .
Rinat Shigapov's avatar
Rinat Shigapov committed
56

Yuanhao Zhu's avatar
Yuanhao Zhu committed
57
58
59
60
61
62
If you are on macOS, replace the last command with

.. code::

   CC=lang CXX=clang++ CFLAGS='-stdlib=libc++' pip install -e .

Rinat Shigapov's avatar
Rinat Shigapov committed
63
64
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,
lizz's avatar
lizz committed
65
you can first install it before installing MMCV to skip the installation of :code:`opencv-python`.