boostcampaitech4lv23cv2 / level2_dataannotation_cv-level2-cv-11

level2_dataannotation_cv-level2-cv-11 created by GitHub Classroom
2 stars 1 forks source link

inference 평가 및 시각화 #18

Closed jerry-ryu closed 1 year ago

jerry-ryu commented 1 year ago

Overview

Todo

inference code

  • [x] inference code - ufo 생성
  • [x] inference code - 평가
  • [x] inference code & gt 시각화

Additional Context

jerry-ryu commented 1 year ago

inference 평가 및 시각화 사용 방법

  1. inference_viz.py 실행

    --data_dir == 데이터 폴더 위치 --json_dir == json 파일 위치 --model_dir == 모델 pth 파일 위치 --output_dir == 출력 파일 위치

  2. inf가 완료되면. output_dir에 result.txt와 output.json이 생긴다. result.txt에는 평가지표 점수가 저장되어있다.

  3. notebook/FiftyOne.ipynb pred_gt 비교에 이미지 파일 경로와 output.json을 넣고 fifty one을 실행하면

image gt와 pred를 한번에 볼 수 있다.