mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #249] [Question] How to get/output the name of an initialized CLIP model? #218
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#218
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 @lowfuel on GitHub (Jun 1, 2022).
Original GitHub issue: https://github.com/openai/CLIP/issues/249
I have several models going, and display some information about them as the process runs, but I'd like to indicate which model the information is coming from. However, I don't see a way to print the name of an initialized CLIP model (like "ViT-B/16"). Is there a way to do this or should I track them separately?
Thanks!
@kairitukega commented on GitHub (Oct 21, 2024):
If say you have:
model = CLIPModel.from_pretrained(model_ID).to(device)
then initialized CLIP model will be determined by:
model.config