[GH-ISSUE #249] [Question] How to get/output the name of an initialized CLIP model? #218

Open
opened 2026-10-31 21:12:35 +00:00 by bsakaguchi · 1 comment
Owner

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!

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!
Author
Owner

@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

<!-- gh-comment-id:2427812973 --> @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
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openai/CLIP#218
No description provided.