Use mmdet to detect cloth
Please refer to get_started.md for installation. Or, if you use docker container, see this dockerfile
1.First install mmdetection follow the above installation step.
2.please download deepfasion2 dataset here and annotation file here
3.make the file like this.
mmdetection
├── mmdet
├── tools
├── configs
├── data
│ ├── deepfashion2_zip
│ │ ├── annotations
│ │ ├── train
│ │ ├── validation
│ │ ├── test
Note that train dir is a dir include all images. and validation dir could also do like this:
(1)Make a dir named 'train' in data/deepfashion2_zip.(maybe you need to rename the dir name for deepfashion2_zip when you download the dataset)
(2)Unzip the train.zip in deepfashion2 dataset, there is a annos dir and a image dir.
(3)ln -s /image dir/ /data/deepfashion2_zip/train/
5.run the train command followed by here: Training on multiple GPUs.(a machine with n GPUs)
bash ./tools/dist_train.sh \
${CONFIG_FILE} \
${GPU_NUM} \
[optional arguments]
for me:
bash ./tools/dist_train.sh configs/vfnet/vfnet_r2_101_fpn_2x_cloth.py 8
Please refer to FAQ for frequently asked questions.
MMDetection is an open source project that is contributed by researchers and engineers from various colleges and companies. We appreciate all the contributors who implement their methods or add new features, as well as users who give valuable feedbacks. We wish that the toolbox and benchmark could serve the growing research community by providing a flexible toolkit to reimplement existing methods and develop their own new detectors.