MMdetection Train & Inference

less than 1 minute read

Train

python tools/train.py configs/_base_/deepfashion_dev1.py --work-dir working_test

Inference to generate json file

python tools/test.py configs/_base_/deepfashion_dev1.py \ 
working_test/epoch_9.pth \
--format-only --eval-options "jsonfile_prefix=./result_epoch9"

https://github.com/dacon-ai/K-fashion-baseline/blob/master/docs/getting_started.md https://github.com/open-mmlab/mmdetection/blob/master/docs/tutorials/robustness_benchmarking.md

Inference with shof resulting images

python tools/test.py configs/_base_/deepfashion_dev1.py \
 working_test/epoch_9.pth \
 --show-dir deepfashion_dev1_result

Inference with existing models (input is only image)

https://github.com/open-mmlab/mmdetection/blob/master/demo/inference_demo.ipynb

Leave a comment