File size: 955 Bytes
60465e5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# Install the SegFormer++ without MMSegmentation/MMPose
**Step 0.** Prerequisites
- Pytorch: 2.3 (CUDA 12.1) (older versions should also work fine)
**Step 1.** Install [MMCV](https://github.com/open-mmlab/mmcv) using [MIM](https://github.com/open-mmlab/mim).
```shell
pip install -U openmim
mim install mmengine
mim install "mmcv>=2.0.0"
```
**Step 2.** Install Segformer++
```shell
cd model
pip install .
```
**Step 3.** [Run the SegFormer++](../run/run_mmeng.md)
**Troubleshooting**
There might be installation troubles with openmim, mmengine, and mmcv for new python versions. Thus, Step 1 might not work correctly.
In this case, try the following alternative for step 1:
```shell
pip install torch torchvision numpy
pip install mmcv-full==1.2.7
pip install mmcv
```
If it is still not working, make sure to use a pip virtual environment (python -m venv "name of the environment"), not a conda environment.
|