Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

apple
/
MobileCLIP-S2-OpenCLIP

Zero-Shot Image Classification
OpenCLIP
Safetensors
clip
Model card Files Files and versions
xet
Community
7

Instructions to use apple/MobileCLIP-S2-OpenCLIP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • OpenCLIP

    How to use apple/MobileCLIP-S2-OpenCLIP with OpenCLIP:

    import open_clip
    
    model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:apple/MobileCLIP-S2-OpenCLIP')
    tokenizer = open_clip.get_tokenizer('hf-hub:apple/MobileCLIP-S2-OpenCLIP')
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Remove outdated license fields from metadata

#7 opened 9 months ago by
pcuenq

Why doesn't the S1/S2 text encoder use attn_mask or key_padding_mask to deal with padding tokens?

#5 opened about 1 year ago by
Kinfai

the scores distribution is all around 0.2, why is that

#4 opened over 1 year ago by
NemesisPrime
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs