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

  • Log In
  • Sign Up

microsoft
/
beit-base-patch16-224-pt22k-ft22k

Image Classification
Transformers
PyTorch
JAX
beit
vision
Model card Files Files and versions
xet
Community
5

Instructions to use microsoft/beit-base-patch16-224-pt22k-ft22k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use microsoft/beit-base-patch16-224-pt22k-ft22k with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="microsoft/beit-base-patch16-224-pt22k-ft22k")
    pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")
    # Load model directly
    from transformers import AutoImageProcessor, AutoModelForImageClassification
    
    processor = AutoImageProcessor.from_pretrained("microsoft/beit-base-patch16-224-pt22k-ft22k")
    model = AutoModelForImageClassification.from_pretrained("microsoft/beit-base-patch16-224-pt22k-ft22k")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

config.json is missing 2 labels from id2label and label2id: 9205 and 15027

#5 opened 11 months ago by
cristian-m-vasile

Update preprocessor_config.json

#4 opened about 2 years ago by
camanalo1

Adding `safetensors` variant of this model

#3 opened almost 3 years ago by
SFconvertbot

Adding `safetensors` variant of this model

#2 opened over 3 years ago by
Narsil

how did it recognize this as android man, gun and bullet proof vest

#1 opened over 3 years ago by
Worn-Edge
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs