강의 내용 복습
음색이 다른 악기 (모델)들을 사용하는 것
Hard Voting: 여러 개의 모델들의 예측 class 중에서 다수결로 최종 class를 선택
Soft Voting: 여러 개의 모델들의 각 class 별 예측 확률을 더해서 가장 높은 확률을 가진 class를 최종 class로 선택
Cross Validation
Test Time Augmentation: Testset을 augmentation 후 모델 추론. 출력된 여러 결과를 앙상불
앙상불은 그만큼 효과는 있지만 학습, 추론 시간이 배로 소요됨
과제 수행
위에 있듯이 먼저 git clone 주소 해서 어떤 git에 code를 올릴지 정한다.
git branch albumentation 같이 해서 branch를 만든다
git branch 해서 branch 생성 여부를 확인
git checkout albumentation 해서 branch로 이동
git branch로 branch로 이동 여부를 확인 (*의 위치)
코드를 수정
git add dataset.py 같이 해서 add를 시킴
git status 하면 add 한 파일들을 알 수 있다
On branch T2045_HRN_OCR
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: experiments/bc_trash/hrnet_seg.yaml
new file: experiments/bc_trash/hrnet_seg_all.yaml
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: lib/models/seg_hrnet_ocr.py
modified: tools/check_hrn_ocn.py
modified: tools/train.py
git commit -m "dataset.py에 albumentation 추가" 와 같이 commit
git push origin albumentation 해서 branch로 push를 한다. online branch로 push 하는 듯...
To https://github.com/boostcampaitech2/semantic-segmentation-level2-cv-19.git ! [rejected] T2045_HRN_OCR -> T2045_HRN_OCR (fetch first) error: failed to push some refs to 'https://github.com/boostcampaitech2/semantic-segmentation-level2-cv-19.git' hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
github 홈페이지로 가서 Compare and PR 을 눌러준다
Merge를 기다림
github 관련 참고할 만한 글들이 https://backlog.com/git-tutorial/kr/stepup/stepup2_3.html
문제가 크게 3가지다. 즉 나이 분류, 성별 분류, 마스크 착용 여부 분류다. 그런데 같은 데이타를 학습하였을 때 문제에 따라서 성공률이 다르다. 이에 대한 원인의 분석을 하는 것이 지금 주로 하는 내용들이다.
학습 회고
이미지 분류도 어떤 문제이냐에 따라서 문제의 성격이 다르다. 즉 mast, gender, age 에 따라서 동일한 parameter와 model을 쓰는 것이 아닌 것 같다. 문제의 성격을 파악하고 이에 따라 어떤 다른 방법을 쓰는 지 공부를 해야겠다.
오피스 아워
octotree https://chrome.google.com/webstore/detail/octotree-github-code-tree/bkhaagjahfmjljalopjnoealnfndnagc
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