Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLIP Format #32

Open
Luo-Z13 opened this issue Jul 3, 2024 · 1 comment
Open

CLIP Format #32

Luo-Z13 opened this issue Jul 3, 2024 · 1 comment

Comments

@Luo-Z13
Copy link

Luo-Z13 commented Jul 3, 2024

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
Copy link
Author

Luo-Z13 commented Jul 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant