|
Download models/SegformerPlusPlus (KieDani)/docs/setup/mmeng_setup.md from niobures/SegformerPlusPlus: direct link, hf CLI and curl.
- Browser
- Download file 955 Bytes
-
https://huggingface.co/niobures/SegformerPlusPlus/resolve/main/models/SegformerPlusPlus%20(KieDani)/docs/setup/mmeng_setup.md
- Command line
-
hf download 'hf://niobures/SegformerPlusPlus/models/SegformerPlusPlus (KieDani)/docs/setup/mmeng_setup.md'
-
curl -L -o mmeng_setup.md 'https://huggingface.co/niobures/SegformerPlusPlus/resolve/main/models/SegformerPlusPlus%20(KieDani)/docs/setup/mmeng_setup.md'
955 Bytes
| # 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. | |