The correct functioning of this repository depends on the right versioning of some of its libraries, especially OpenMMLab. Below you'll see a step-by-step on how to set them up.
- Create a
condaenvironment:
conda create -n omg-seg python=3.10
conda activate omg-seg- Install PyTorch:
# CUDA 11.8
conda install pytorch==2.0.1 torchvision==0.15.2 pytorch-cuda=11.8 -c pytorch -c nvidia
# CUDA 11.7
conda install pytorch==2.0.1 torchvision==0.15.2 pytorch-cuda=11.7 -c pytorch -c nvidia- Install OpenMMLab libraries
pip install -U openmim
mim install mmcv==2.0.1 mmengine==0.8.5 mmdet==3.1.0 mmsegmentation==1.1.1 mmpretrain==1.0.1- Install the remaining libraries
python -m pip install git+https://github.com/cocodataset/panopticapi.git \
git+https://github.com/HarborYuan/lvis-api.git \
"numpy<2" \
opencv-python==4.8.1.78 \
tqdm terminaltables pycocotools scipy tqdm ftfy regex timm scikit-image korniaAfter all the steps, you should have a functional environment for executing the codebase.