1. 오류
에러
FileNotFoundError: [Errno 2] No such file or directory: '/.conda/envs/snowflakes/lib/python3.11/site-packages/hpsv2/src/open_clip/bpe_simple_vocab_16e6.txt.gz
FileNotFoundError: [Errno 2] No such file or directory: '/.conda/envs/snowflakes/lib/python3.11/site-packages/hpsv2/src/open_clip/bpe_simple_vocab_16e6.txt.gz
open_clip 안의 txt gz 파일을 못찾아서 에러가 났다.
2. 해결
pip install hpsv2로 하지 말고!
아래의 hpsv2 깃허브를 직접 git clone 한 후,
해당 폴더에 들어가서 pip install -e . 를 해주면 된다.
https://github.com/tgxs002/HPSv2.git
GitHub - tgxs002/HPSv2: Human Preference Score v2: A Solid Benchmark for Evaluating Human Preferences of Text-to-Image Synthesis
Human Preference Score v2: A Solid Benchmark for Evaluating Human Preferences of Text-to-Image Synthesis - tgxs002/HPSv2
github.com