Create and activate virtual environment (install Python3.10 previously):

python3.10 -m venv ~/.venvs/image-mmseg
source ~/.venvs/image-mmseg/bin/activate

Install pytorch:

pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url [<https://download.pytorch.org/whl/cu118>](<https://download.pytorch.org/whl/cu118>)

Install other dependencies

pip install numpy==1.26.4 openmim==0.3.9 lightning==2.5.0.post0 onnxruntime onnx ftfy regex

Install mmsegmentation:

mim install mmengine==0.10.6 mmcv==2.1.0 mmsegmentation==1.2.2 mmdet==3.3.0

Install DetectionMetrics:

pip install -e git+https://github.com/JdeRobot/DetectionMetrics.git@a09358899e3ac47adc067bcb4d02e332a96ecc73#egg=detectionmetrics

My installed versions

VLTSeg