open_clip icon indicating copy to clipboard operation
open_clip copied to clipboard

Update requirements.txt

Open AugustKarlstedt opened this issue 3 years ago • 3 comments

transformers seems to be required to use open_clip, not just for training. see https://github.com/mlfoundations/open_clip/blob/60534f4774b11a2532536f3f264a666f11fbb6b6/src/open_clip/hf_model.py#L102

AugustKarlstedt avatar Dec 15 '22 20:12 AugustKarlstedt

This is an optional dependency and is only required to use models from huggingface.

lopho avatar Dec 15 '22 20:12 lopho

While it is optionally used at runtime, it still should be included to be able to resolve dependencies e.g. in requirement lock files

AugustKarlstedt avatar Dec 17 '22 01:12 AugustKarlstedt

I think it would make sense to simply clarify the error to explain to the user they need to install transformer dependency if they use models coming from huggingface.

On Sat, Dec 17, 2022, 02:09 August Karlstedt @.***> wrote:

While it is optionally used at runtime, it still should be included to be able to resolve dependencies e.g. in requirement lock files

— Reply to this email directly, view it on GitHub https://github.com/mlfoundations/open_clip/pull/298#issuecomment-1355897121, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437UWB55Q57YFSKJNLT3WNUHGBANCNFSM6AAAAAATAESNOQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

rom1504 avatar Dec 17 '22 02:12 rom1504