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

  • Log In
  • Sign Up

MBZUAI
/
swiftformer-s

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

Instructions to use MBZUAI/swiftformer-s with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use MBZUAI/swiftformer-s with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="MBZUAI/swiftformer-s")
    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("MBZUAI/swiftformer-s")
    model = AutoModelForImageClassification.from_pretrained("MBZUAI/swiftformer-s")
  • Notebooks
  • Google Colab
  • Kaggle
swiftformer-s
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
shehan97's picture
shehan97
Upload config.json
e02fbb2 almost 3 years ago
  • .gitattributes
    1.48 kB
    initial commit about 3 years ago
  • README.md
    1.97 kB
    Update README.md about 3 years ago
  • config.json
    69.7 kB
    Upload config.json almost 3 years ago
  • preprocessor_config.json
    175 Bytes
    Upload 3 files about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    24.5 MB
    xet
    Upload 2 files almost 3 years ago