RemoteCLIP icon indicating copy to clipboard operation
RemoteCLIP copied to clipboard

CLIP Format

Open Luo-Z13 opened this issue 1 year ago • 1 comments

Could you please guide me on how to convert a ".pt" format model into the Hugging Face format (similar to the one at https://huggingface.co/laion/CLIP-ViT-g-14-laion2B-s12B-b42K/tree/main? It seems to require a JSON file to load the model.

Thank you!

Luo-Z13 avatar Jul 03 '24 03:07 Luo-Z13

Specifically, It seems the .pt format can not be loaded via the function CLIPVisionConfig.from_pretrained.

Luo-Z13 avatar Jul 03 '24 04:07 Luo-Z13