Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run_cli.py just freezes? import open_clip freezes? #93

Open
chrisbward opened this issue Aug 29, 2023 · 1 comment
Open

run_cli.py just freezes? import open_clip freezes? #93

chrisbward opened this issue Aug 29, 2023 · 1 comment

Comments

@chrisbward
Copy link

python3.8 -m venv ./.venv
source ./.venv/bin/activate
pip install -r requirements.txt
python ./run_cli.py

I've noticed a couple of things;

clip_interrogator.py, CACHE_URL_BASE is wrong, and should now be;

CACHE_URL_BASE = 'https://huggingface.co/pharmapsychotic/ci-preprocess/resolve/main/'

If I remove the line;

from clip_interrogator import Interrogator, Config, list_clip_models

I am now able to proceed to the help message when no arguments are supplied.

I've now tried importing open_clip in the REPL, and it hangs?

Python 3.8.10 (default, May 26 2023, 14:05:08) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import open_clip
^C

@pharmapsychotic
Copy link
Owner

Oh thanks for mentioning the HF url change! I fixed my name there and it move my stuff around hehe

that's weird about open_clip freezing things up. maybe it's related to using older version of Python? fwiw I've been using Python 3.9 and 3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants