deepfates / memery

Search over large image datasets with natural language and computer vision!
https://deepfates.com/memery
MIT License
526 stars 27 forks source link

Required dependencies are a bit much #23

Open russelldc opened 3 years ago

russelldc commented 3 years ago

It'd be nice to install this without having to downgrade to torch 1.7.1 (as well as torchvision and some others). It seems like this is being forced by the clip-by-openai package on pypi. Not sure I trust a random package like this (plus it's behind on commits by a few months), and I'd recommend installing directly from the official git repo. I'm not sure if this can work inside a requirements.txt file, but this is what I usually do: pip install git+https://github.com/openai/CLIP

I have an alternative in just doing a pip install memery --no-deps but then I'd have to gather all the missing dependencies manually.

russelldc commented 3 years ago

From some quick googling/stackoverflowing, seems like it'd work fine in a requirements.txt file too: git+https://github.com/openai/CLIP.git

deepfates commented 3 years ago

Thanks! I will test this out. I think there was a problem with using external repos from settings.ini but I don't remember why. Certainly don't want to drag in anything unnecessarily.

On Fri, Sep 3, 2021 at 12:09 PM Daniel Russell @.***> wrote:

From some quick googling/stackoverflowing, seems like it'd work fine in a requirements.txt file too: git+https://github.com/openai/CLIP.git

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/deepfates/memery/issues/23#issuecomment-912718590, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN7DJVAEJJ7UG4YP7ZBV5BTUAEFMNANCNFSM5DMHDELQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

deepfates commented 3 years ago

I see that the official CLIP repo recommends using Torch 1.7.1. Have you been using it fine with a different version @russelldc ?

russelldc commented 3 years ago

I think that was changed since this commit (to be 1.7.1 and above, not just a hard requirement on 1.7.1): https://github.com/openai/CLIP/commit/db20393f4affd4158528bd868478e516ebed0944

deepfates commented 3 years ago

Okay, I have updated the dependencies. Found that PyPi doesn't allow install_requires to have dependencies on external repos, like "clip@git+https://github.com/openai/CLIP.git", but instead can use dependency_links which is built from dep_links in settings.ini. Hopefully it builds correctly from pip now, if anyone can give it a try and let me know that would be great

deepfates commented 3 years ago

Scratch that, it seems this doesn't work due to many reasons including the fact there's already something called clip in PyPi. Tried converting it to huggingface repo but they use a different forward pass system and it's a pain to translate.

I'm planning to switch to Jina soon anyway so maybe that will paper over all these issues

wkrettek commented 2 years ago

Is a Jina refactor still on the table?