Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

tmshag1
/
vitmodel3

Image Classification
Transformers
PyTorch
vit
custom_code
Model card Files Files and versions
xet
Community
1

Instructions to use tmshag1/vitmodel3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use tmshag1/vitmodel3 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="tmshag1/vitmodel3", trust_remote_code=True)
    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("tmshag1/vitmodel3", trust_remote_code=True)
    model = AutoModelForImageClassification.from_pretrained("tmshag1/vitmodel3", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
vitmodel3
343 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
tmshag1's picture
tmshag1
Upload model
7a90d6c almost 3 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 3 years ago
  • config.json
    642 Bytes
    Upload model almost 3 years ago
  • configuration_vitmodel.py
    1.25 kB
    Upload model almost 3 years ago
  • modeling_vitmodel.py
    493 Bytes
    Upload model almost 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    343 MB
    xet
    Upload model almost 3 years ago