openai / CLIP

CLIP (Contrastive Language-Image Pretraining), Predict the most relevant text snippet given an image
MIT License
25.93k stars 3.32k forks source link

Uninstalling pytorch? #221

Open hywkim-brian opened 2 years ago

hywkim-brian commented 2 years ago

Hi, running

$ conda install --yes -c pytorch pytorch=1.7.1 torchvision cudatoolkit=11.0
$ pip install ftfy regex tqdm
$ pip install git+https://github.com/openai/CLIP.git

uninstalls pytorch 1.7.1 and reinstalls pytorch 1.9.1 for some reason and this is causing me serious dependency problems with other builds.. can you look into why this is happening?/ Thanks a lot

AlexanderKozhevin commented 2 years ago
Screenshot 2022-04-02 at 17 50 30
jongwook commented 2 years ago

Depending on the environment/versions, the combination of conda/pip might do unexpected/undesired things .. The CLIP package should be compatible with any pytorch version 1.7.1 and after, and its requirements.txt was intentionally written without version qualifiers to avoid the dependency headache.

You could try pip-installing CLIP with the --no-deps option if your environment is otherwise with the correct versions and everything.

(The problematic version check pasted by @AlexanderKozhevin above was removed by #191)