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

  • Log In
  • Sign Up

microsoft
/
beit-base-patch16-224-pt22k

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

Instructions to use microsoft/beit-base-patch16-224-pt22k 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 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")
    pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")
    # Load model directly
    from transformers import AutoImageProcessor, BeitForMaskedImageModeling
    
    processor = AutoImageProcessor.from_pretrained("microsoft/beit-base-patch16-224-pt22k")
    model = BeitForMaskedImageModeling.from_pretrained("microsoft/beit-base-patch16-224-pt22k")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
beit-base-patch16-224-pt22k
1.1 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 11 commits
nielsr's picture
nielsr HF Staff
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#1)
49128b4 about 3 years ago
  • .gitattributes
    837 Bytes
    Adding `safetensors` variant of this model (#1) about 3 years ago
  • README.md
    4.94 kB
    Add vision tag over 4 years ago
  • config.json
    736 Bytes
    add config over 4 years ago
  • flax_model.msgpack
    368 MB
    xet
    add model over 4 years ago
  • model.safetensors
    368 MB
    xet
    Adding `safetensors` variant of this model (#1) about 3 years ago
  • preprocessor_config.json
    276 Bytes
    Update preprocessor_config.json over 4 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

    • "collections.OrderedDict",
    • "torch.FloatStorage",
    • "torch.LongStorage",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    368 MB
    xet
    First commit almost 5 years ago