CLIP icon indicating copy to clipboard operation
CLIP copied to clipboard

[Question] How to get/output the name of an initialized CLIP model?

Open lowfuel opened this issue 3 years ago • 1 comments

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!

lowfuel avatar Jun 01 '22 03:06 lowfuel

If say you have: model = CLIPModel.from_pretrained(model_ID).to(device) then initialized CLIP model will be determined by:

model.config

kairitukega avatar Oct 21 '24 21:10 kairitukega