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

  • Log In
  • Sign Up

facebook
/
deit-base-patch16-224

Image Classification
Transformers
PyTorch
google-tensorflow TensorFlow
vit
Model card Files Files and versions
xet
Community
3

Instructions to use facebook/deit-base-patch16-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use facebook/deit-base-patch16-224 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="facebook/deit-base-patch16-224")
    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("facebook/deit-base-patch16-224")
    model = AutoModelForImageClassification.from_pretrained("facebook/deit-base-patch16-224")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
deit-base-patch16-224
693 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 9 commits
amyeroberts's picture
amyeroberts
Add TF weights (#1)
fb2c78a almost 4 years ago
  • .gitattributes
    690 Bytes
    initial commit about 5 years ago
  • README.md
    7.28 kB
    Update dataset tag almost 4 years ago
  • config.json
    69.6 kB
    First commit about 5 years ago
  • preprocessor_config.json
    160 Bytes
    First commit about 5 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    346 MB
    xet
    First commit about 5 years ago
  • tf_model.h5
    347 MB
    xet
    Add TF weights (#1) almost 4 years ago