mmcv-full-1.7.1-torch-2
Update setup.py for mmcv-full 1.7.1 to match torch >=2.
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.5%) to scientific vocabulary
Repository
Update setup.py for mmcv-full 1.7.1 to match torch >=2.
Basic Info
- Host: GitHub
- Owner: c7w
- License: apache-2.0
- Language: Python
- Default Branch: master
- Size: 12.4 MB
Statistics
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Guide
This repository is modified by c7w based on mmcv-full 1.7.1 to make it able to install with torch >=2.
To install mmcv 1.7.1:
MAX_JOBS=16 pip install git+https://github.com/c7w/mmcv-full-1.7.1-torch-2.git -vvv
To install mmcv-full 1.7.1 (make sure that your PATH and LDLIBRARYPATH env vars include CUDA paths your PyTorch is compiled upon):
MAX_JOBS=16 MMCV_WITH_OPS=1 pip install git+https://github.com/c7w/mmcv-full-1.7.1-torch-2.git -vvv
After installing this, you can install other mm-family packages as usual, such as:
pip install openmim
mim install mmdet==2.28.2
README.md from mmcv-1.7.1
English | 简体中文
Highlights
The OpenMMLab team released a new generation of training engine MMEngine at the World Artificial Intelligence Conference on September 1, 2022. It is a foundational library for training deep learning models. Compared with MMCV, it provides a universal and powerful runner, an open architecture with a more unified interface, and a more customizable training process.
At the same time, MMCV released 2.x release candidate version and will release 2.x official version on January 1, 2023.
In version 2.x, it removed components related to the training process and added a data transformation module. Also, starting from 2.x, it renamed the package names mmcv to mmcv-lite and mmcv-full to mmcv. For details, see Compatibility Documentation.
MMCV will maintain both 1.x and 2.x versions. For details, see Branch Maintenance Plan.
Introduction
MMCV is a foundational library for computer vision research and it provides the following functionalities:
- Universal IO APIs
- Image/Video processing
- Image and annotation visualization
- Useful utilities (progress bar, timer, ...)
- PyTorch runner with hooking mechanism
- Various CNN architectures
- High-quality implementation of common CPU and CUDA ops
It supports the following systems:
- Linux
- Windows
- macOS
See the documentation for more features and usage.
Note: MMCV requires Python 3.6+.
Installation
There are two versions of MMCV:
- mmcv-full: comprehensive, with full features and various CPU and CUDA ops out of the box. It takes longer time to build.
- mmcv: lite, without CPU and CUDA ops but all other features, similar to mmcv<1.0.0. It is useful when you do not need those CUDA ops.
Note: Do not install both versions in the same environment, otherwise you may encounter errors like ModuleNotFound. You need to uninstall one before installing the other. Installing the full version is highly recommended if CUDA is available.
Install mmcv-full
Before installing mmcv-full, make sure that PyTorch has been successfully installed following the PyTorch official installation guide.
The command to install mmcv-full:
bash
pip install -U openmim
mim install mmcv-full
If you need to specify the version of mmcv-full, you can use the following command:
bash
mim install mmcv-full==1.7.0
If you find that the above installation command does not use a pre-built package ending with .whl but a source package ending with .tar.gz, you may not have a pre-build package corresponding to the PyTorch or CUDA or mmcv-full version, in which case you can build mmcv-full from source.
Installation log using pre-built packages
Looking in links: https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/index.htmlCollecting mmcv-full
Downloading https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/mmcv_full-1.6.1-cp38-cp38-manylinux1_x86_64.whl
Installation log using source packages
Looking in links: https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/index.htmlCollecting mmcv-full==1.6.0
Downloading mmcv-full-1.6.0.tar.gz
For more installation methods, please refer to the Installation documentation.
Install mmcv
If you need to use PyTorch-related modules, make sure PyTorch has been successfully installed in your environment by referring to the PyTorch official installation guide.
bash
pip install -U openmim
mim install mmcv
Branch Maintenance Plan
MMCV currently has two branches, the master and 2.x branches, which go through the following three phases.
| Phase | Time | Branch | description | | -------------------- | --------------------- | --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | | RC Period | 2022/9/1 - 2022.12.31 | Release candidate code (2.x version) will be released on 2.x branch. Default master branch is still 1.x version | Master and 2.x branches iterate normally | | Compatibility Period | 2023/1/1 - 2023.12.31 | Default master branch will be switched to 2.x branch, and 1.x branch will correspond to 1.x version | We still maintain the old version 1.x, respond to user needs, but try not to introduce changes that break compatibility; master branch iterates normally | | Maintenance Period | From 2024/1/1 | Default master branch corresponds to 2.x version and 1.x branch is 1.x version | 1.x branch is in maintenance phase, no more new feature support; master branch is iterating normally |
Supported projects
- MIM: MIM installs OpenMMLab packages.
- MMClassification: OpenMMLab image classification toolbox and benchmark.
- MMDetection: OpenMMLab detection toolbox and benchmark.
- MMDetection3D: OpenMMLab's next-generation platform for general 3D object detection.
- MMRotate: OpenMMLab rotated object detection toolbox and benchmark.
- MMSegmentation: OpenMMLab semantic segmentation toolbox and benchmark.
- MMOCR: OpenMMLab text detection, recognition, and understanding toolbox.
- MMPose: OpenMMLab pose estimation toolbox and benchmark.
- MMHuman3D: OpenMMLab 3D human parametric model toolbox and benchmark.
- MMSelfSup: OpenMMLab self-supervised learning toolbox and benchmark.
- MMRazor: OpenMMLab model compression toolbox and benchmark.
- MMFewShot: OpenMMLab fewshot learning toolbox and benchmark.
- MMAction2: OpenMMLab's next-generation action understanding toolbox and benchmark.
- MMTracking: OpenMMLab video perception toolbox and benchmark.
- MMFlow: OpenMMLab optical flow toolbox and benchmark.
- MMEditing: OpenMMLab image and video editing toolbox.
- MMGeneration: OpenMMLab image and video generative models toolbox.
- MMDeploy: OpenMMLab model deployment framework.
FAQ
If you face installation problems or runtime issues, you may first refer to this Frequently Asked Questions to see if there is a solution. If the problem is still not solved, feel free to open an issue.
Citation
If you find this project useful in your research, please consider cite:
latex
@misc{mmcv,
title={{MMCV: OpenMMLab} Computer Vision Foundation},
author={MMCV Contributors},
howpublished = {\url{https://github.com/open-mmlab/mmcv}},
year={2018}
}
Contributing
We appreciate all contributions to improve MMCV. Please refer to CONTRIBUTING.md for the contributing guideline.
License
MMCV is released under the Apache 2.0 license, while some specific operations in this library are with other licenses. Please refer to LICENSES.md for the careful check, if you are using our code for commercial matters.
Owner
- Name: Huan-ang Gao
- Login: c7w
- Kind: user
- Location: Beijing, China
- Company: Tsinghua University
- Website: https://c7w.tech
- Twitter: c7wc7w
- Repositories: 6
- Profile: https://github.com/c7w
Junior @ Computer Science and Technology, Tsinghua Univ. && Research Intern @AIR-DISCOVER
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - name: "MMCV Contributors" title: "OpenMMLab Computer Vision Foundation" date-released: 2018-08-22 url: "https://github.com/open-mmlab/mmcv" license: Apache-2.0
GitHub Events
Total
- Watch event: 2
- Push event: 1
- Create event: 2
Last Year
- Watch event: 2
- Push event: 1
- Create event: 2
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v2 composite
- actions/setup-python v2 composite
- codecov/codecov-action v1.0.14 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- actions/upload-artifact v3 composite
- actions/checkout v2 composite
- DoozyX/clang-format-lint-action v0.11 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- actions/checkout v2 composite
- actions/setup-python v1 composite
- pytorch/pytorch ${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel build
- pytorch/pytorch ${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel build
- pytest-runner *
- docutils ==0.16.0
- markdown >=3.4.0
- myst-parser *
- opencv-python *
- sphinx ==4.0.2
- sphinx-copybutton *
- sphinx_markdown_tables >=0.0.16
- torch *
- ninja *
- psutil *
- Pillow *
- addict *
- numpy *
- packaging *
- pyyaml *
- regex *
- yapf *
- PyTurboJPEG * test
- coverage * test
- lmdb * test
- onnx * test
- onnxoptimizer * test
- onnxruntime >=1.8.0 test
- protobuf * test
- pytest * test
- scipy * test
- tifffile * test