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

  • Log In
  • Sign Up

google
/
vit-base-patch16-384

Image Classification
Transformers
PyTorch
google-tensorflow TensorFlow
JAX
Safetensors
vit
vision
Model card Files Files and versions
xet
Community
1

Instructions to use google/vit-base-patch16-384 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use google/vit-base-patch16-384 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="google/vit-base-patch16-384")
    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("google/vit-base-patch16-384")
    model = AutoModelForImageClassification.from_pretrained("google/vit-base-patch16-384")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
vit-base-patch16-384
1.39 GB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 13 commits
lysandre's picture
lysandre HF Staff
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#1)
2960116 over 2 years ago
  • .gitattributes
    744 Bytes
    Adding `safetensors` variant of this model (#1) over 2 years ago
  • README.md
    5.47 kB
    Add vision tag over 4 years ago
  • config.json
    69.7 kB
    Add TF model over 4 years ago
  • flax_model.msgpack
    347 MB
    xet
    add model almost 5 years ago
  • model.safetensors
    347 MB
    xet
    Adding `safetensors` variant of this model (#1) over 2 years ago
  • preprocessor_config.json
    160 Bytes
    Add preprocessor_config about 5 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    348 MB
    xet
    Update model about 5 years ago
  • tf_model.h5
    348 MB
    xet
    Add TF model over 4 years ago