mirror of
https://github.com/open-mmlab/mmselfsup.git
synced 2025-06-03 14:59:38 +08:00
* refactor directory * modify titles * fix lint * update index.rst * update * fix typo * update * fix typo * update model zoo * update index.rst * fix typo * fix typo
1022 B
1022 B
Segmentation
For semantic segmentation task, we use MMSegmentation. First, make sure you have installed MIM, which is also a project of OpenMMLab.
pip install openmim
It is very easy to install the package.
Besides, please refer to MMSeg for installation and data preparation.
Train
After installation, you can run MMSeg with simple command.
# distributed version
bash tools/benchmarks/mmsegmentation/mim_dist_train.sh ${CONFIG} ${PRETRAIN} ${GPUS}
# slurm version
bash tools/benchmarks/mmsegmentation/mim_slurm_train.sh ${PARTITION} ${CONFIG} ${PRETRAIN}
Remarks:
CONFIG
: Use config files underconfigs/benchmarks/mmsegmentation/
or write your own config filesPRETRAIN
: the pre-trained model file.