boostcampaitech3 / final-project-level3-cv-17

[2022.05.16 ~ 2022.06.10] 🌤️미세먼지 없는 맑은 사진📷 - 부스트캠프 AI Tech 3기 최종 프로젝트
13 stars 3 forks source link

[feat] evaluation metric #13

Closed Dongwoo-Im closed 2 years ago

Dongwoo-Im commented 2 years ago

What is this PR?

refactor를 마무리했고, evaluation metric을 제공하는 pyiqa를 사용하기 위한 PR입니다.

Changes

아래 내용은 finetune.py 기준으로 작성되었습니다.

To reviewers

pyiqa github : https://github.com/chaofengc/IQA-PyTorch

seonahmin commented 2 years ago

pyiqa를 사용하려던 중 conda 가상환경 설정하는데에 아래와 같은 오류가 뜨는데 혹시 본적있으신가요? image

Dongwoo-Im commented 2 years ago

@seonahmin 저도 그거 뜬 적 있었는데, 용량이 부족해서 설치가 안되는 경우였습니다. 참고로, 가상환경이 은근히 용량 많이 차지해서 여러개 있으시다면 정리하시는거 추천드려요.

seonahmin commented 2 years ago

아 그리고 또 궁금한게 공식 github가보면 굳이 clone하지 않더라도 install할 수 있는게 있던데 그렇게 하면 혹시 오류가 나나요?

Dongwoo-Im commented 2 years ago

그렇게 install하면 pytorch 버전 컨트롤이 안되길래 clone하는 방식으로 했습니다. pytorch 1.8.1 버전인 상황에서 install하면 어떻게 될지 해보진 않아서 모르겠네요!

seonahmin commented 2 years ago

pytorch 1.8.1 버전인 상황에서 install하면 잘 동작합니다! 동우님이 하라는대로 환경설정만 맞춰주면 install로만 해도 될 것 같습니다! 잘 돌아가는거 확인해서 merge해도 괜찮을 것 같습니다

Dongwoo-Im commented 2 years ago

@seonahmin 혹시 둘 중 어떤 걸로 받으셨나요? pip install pyiqa : 0.1.3 pip install git+https://github.com/chaofengc/IQA-PyTorch.git : 0.1.3b0 0.1.3b0가 더 빠르네요.

seonahmin commented 2 years ago

0.1.3b0로 받았습니다!ㅎㅎ