Code for 4th place solution in Boostcamp AI Tech Recycle Trash Object detection Challenge.
๋๋ ์์ฐ, ๋๋ ์๋น์ ์๋์ ์ด๋ฉฐ '์ฐ๋ ๊ธฐ ๋๋', '๋งค๋ฆฝ์ง ๋ถ์กฑ'๊ณผ ๊ฐ์ ์ฌ๋ฌ ์ฌํ ๋ฌธ์ ๋ฅผ ๋ณ๊ณ ์๋ค.
๋ถ๋ฆฌ์๊ฑฐ๋ ์ด๋ฌํ ํ๊ฒฝ๋ถ๋ด์ ์ค์ผ ์ ์๋ ๋ฐฉ๋ฒ์ด๋ค. ํด๋น ๋ํ๋ ์ฐ๋ ๊ธฐ๋ฅผ detectionํ๋ ๋ชจ๋ธ์ ๋ง๋ค์ด ์ ํํ ๋ถ๋ฆฌ์๊ฑฐ๋ฅผ ๋๋ ๊ฒ์ ๊ธฐ์ฌํ๋ค.
Contributors
๊น์์_T2036, ์ด์ ์ง_T2167, ์ดํ๋น_T2176, ์ ์ธ์ข
_T2201, ์กฐํ๋_T2215, ํ์งํ_T2241, ํ์ ํ_T2240
detection
โโโ dataset
โโโ template
โ โโโmmdetection
โ โ โโโconfigs
โ โ โ โโโcustom
โ โ โ โโโhelper
โ โ โ โ โโโdateset.py
โ โ โ โ โโโruntime.py
โ โ โ โ โโโschedule.py
โ โ โ โโโmodels
โ โ โ โโโcascade_rcnn
โ โ โ โโโfaster_rcnn
โ โ โ โโโhtc
โ โ โโโtools
โ โ โ โโโtrain.py
โ โ โ โโโinference.py
โ โ โ โโโensemble.py
โ โ โ โโโmake_fold_annotation.py
โ โ โ โโโvis_submission.ipynb
โ โ โโโsubmission
โ โ โโโensemble_inference.py
โ โ โโโensemble_inf_cfg.json
โ โโโlive
โโโ โโโdetectron
cd mmdetection
- vanilla train
python tools/train.py [config path]
- k-fold train
python tools/make_fold_annotation.py [original_train_json_path]
python tools/train_cv.py [config path]
- pseudo labeling train & inference
python tools/inference_with_pseudo_labeling.py [config path]
- optimization with wandb sweeps
- Setting
- change sweep.yaml file
- Command
-
create sweep graph
wandb sweep sweep.yaml
-
then you can get url
-
you have to change sweepID
wandb agent ProjectName/sweepID
-
cd mmdetection
- vanilla inference
python tools/inference.py [config path]
- k-fold inference
python tools/inference_cv.py [config names] [work_dir]
- Make submission csv file after training
- Change
PRED_CSV
in vis_submission.ipynb - Run cells
cd submission
- Modify ensemble_inf_cfg.json
- Run ensemble_inference.py
python ensemble_inference.py ensemble_inf_cfg.json
https://github.com/ultralytics/yolov5
https://github.com/zylo117/Yet-Another-EfficientDet-Pytorch
ensemble_method : Weighted Boxes Fusion
- "htc_swin_b_384.csv"
- "hsbfm_with_psudolabilng_8.csv"
- "htc_pvt_finetune_mosaic_final.csv"
- "htc_swin_b_finetune_mosaic.csv"
- "htc_swin_b.csv"
- "htc_swin_b_kfold.csv"
- "cascadercnn_pvt.csv"
- "faster_rcnn_pvtv2_b5_final.csv"
Model(detector) | Exepriments Result |
---|---|
Hybrid Task Cascade | README |
CasCade R-CNN | README |
Faster R-CNN | READEM |