pip install -U openmim
mim install mmengine
mim install "mmcv>=2.0.0"
python tools/data_convert.py
├── data
│ └── Liu
│ ├── images
│ │ ├── annotations
│ │ ├── test
│ │ ├── train
│ │ └── val
│ └── labels
│ ├── train
│ └── val
python tools/train.py cfg_file
For example:
➜ AL2LBH git:(master) ✗ python tools/train.py --config mmprojects/liu_detection/config/yolo.py
For example
➜ AL2LBH git:(master) ✗ python demo/image_demo.py data/Liu/images/train/wired_001.jpg mmprojects/liu_detection/config/centernet.py --weight work_dirs/centernet/last_checkpoint --device cpu
inference results will be saved in `outputs`
more details in : https://mmdetection.readthedocs.io/zh-cn/latest/user_guides/index.html