1.训练代码
python tools/train.py {your_configpath}
2.评估代码
mim test mmpretrain myconfig/resnet18_finetune.py --checkpoint work_dirs/epoch_5.pth
或
python tools/test.py {your_configpath} {your_weightpath}
3.推理代码
python ./demo/image_demo.py {infer_path} {your_configpath} --weights {your_weightpath}