mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #366] Using clip.load("ViT-L/14", device=device) Failed to load #317
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openai/CLIP#317
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Blessing92 on GitHub (Jun 1, 2023).
Original GitHub issue: https://github.com/openai/CLIP/issues/366
Has anyone faced the same issue? Whenever I tried to load the ViT-L/14 model, the server crashed. I tried downloading the pre-trained model and loading it directly with clip.load(path_to_directory), but the issue still occurs.
Did anyone try something similar?
Thanks
@dudezhanghao commented on GitHub (Jun 12, 2023):
me too, did u fix the problem? thanks!
@Blessing92 commented on GitHub (Jun 12, 2023):
From what I understood from the repo, you can not use clip.load(path_to_directory) to load the pre-trained model directly, but you must use the URL link.
I downloaded the pre-trained model, saved it to private storage, and passed the link to the loader.
Works for me.
@daeunni commented on GitHub (Feb 19, 2024):
@Blessing92 Hi, may I ask where did u download the pre-trained model?
@Blessing92 commented on GitHub (Feb 19, 2024):
Hi @daeunni
You can find all the pre-trained models here: https://github.com/openai/CLIP/blob/main/clip/clip.py
and then Just paste the URL of one of the pre-trained model in the browser and it will directly download.
Hope it helps.
@daeunni commented on GitHub (Feb 19, 2024):
@Blessing92 Thanks a lot! :-)