Guides
Geneval MMCV Setup
Optional MMCV and MMDetection installation for Geneval/OpenMMLab workflows.
This setup is optional. Only install these packages if your workflow needs the Geneval/OpenMMLab stack.
Why separate?
mmcv/mmdet have CUDA build constraints and are not required for core
UniRL training pipelines.
Recommended versions
mmcvtag:v1.7.2mmdetectionbranch:2.x(currently2.28.2in our validated env)
These versions match the validated local setup used in this repository.
Install steps
Run from any working directory (examples use ~/mmgrpo):
pip install -U openmim
mim install mmengine
cd ~/mmgrpo
git clone https://github.com/open-mmlab/mmcv.git
cd mmcv
git checkout tags/v1.7.2
MMCV_WITH_OPS=1 FORCE_CUDA=1 pip install -e . -v
cd ..
git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection
git checkout 2.x
pip install -e . -v
cd ..Sanity check
python -c "import mmcv, mmdet; print('mmcv', mmcv.__version__); print('mmdet', mmdet.__version__); from mmcv.ops import nms; print('mmcv.ops ok')"Expected:
mmcvreports1.7.2mmdetreports a2.xversion (e.g.,2.28.2)mmcv.ops okprints without import errors