You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README_en.md 1.5 kB

2 years ago
123456789101112131415161718192021222324252627282930313233
  1. ## environment
  2. conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=11.1 -c pytorch -c conda-forge
  3. pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
  4. pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.8.0/index.html
  5. pip install terminaltables
  6. pip install pycocotools
  7. ## Filter ng categories to be detected
  8. python AOI_select.py --AOI_path AOI-data-path
  9. ## Find the white target box in the image and generate the corresponding box and label
  10. python AOI_get_box --AOI_path AOI-data-path --coco_path COCO_format_path --classes_file class_file
  11. ## convert to COCO dataset format
  12. python AOI_to_coco.py --root_dir COCO_format_path --save_path json_file(./train.json)
  13. ## Modify parameter file
  14. configs/AD_detection/AD_dsxw_test66.py
  15. ## single gpu train
  16. python tools/train.py configs/AD_detection/AD_dsxw_test66.py --gpus 1
  17. ## distribute train
  18. tools/dist_train.sh configs/AD_detection/AD_dsxw_test66.py 8(GPU_number)
  19. ## model eval
  20. python tools/test.py config_file ckpt_file --eval bbox
  21. ## search best threshold
  22. python select_threshold.py --config_file config_file --checkpoint_file ckpt_file --images_path testset_path(Contains two folders, OK and ng) --test_batch_size batch_size
  23. ## infer score result(Confidence,feature, etc.)
  24. python get_score_csv.py --config_file config_file --checkpoint_file ckpt_file --images_path testset_path(unlabel_data) --test_batch_size batch_size --result_path test.csv(Absolute path)

No Description

Contributors (2)