mhamilton723 / FeatUp

Official code for "FeatUp: A Model-Agnostic Frameworkfor Features at Any Resolution" ICLR 2024
MIT License
1.38k stars 78 forks source link

Incorrect location of `bpe_simple_vocab_16e6.txt.gz` #47

Open siddancha opened 7 months ago

siddancha commented 7 months ago

Problem

When I try importing:

from featup.plotting import plot_feats, plot_lang_heatmaps

I get the following error:

FileNotFoundError: [Errno 2] No such file or directory: '/home/sancha/repos/diffunc/.venv/lib/python3.10/site-packages/featup/featurizers/maskclip/bpe_simple_vocab_16e6.txt.gz'

Temporary resolution

The file is indeed present in python3.10/site-packages/clip but not in python3.10/site-packages/featup/featurizers/maskclip/. I temporarily fix it by creating a symlink:

ln -s `pwd`/.venv/lib/python3.10/site-packages/clip/bpe_simple_vocab_16e6.txt.gz   .venv/lib/python3.10/site-packages/featup/featurizers/maskclip/