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

  • Log In
  • Sign Up

MBZUAI
/
swiftformer-xs

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

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

  • Libraries
  • Transformers

    How to use MBZUAI/swiftformer-xs with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="MBZUAI/swiftformer-xs")
    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-xs")
    model = AutoModelForImageClassification.from_pretrained("MBZUAI/swiftformer-xs")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
swiftformer-xs
28.1 MB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 19 commits
AbdelrahmanM's picture
AbdelrahmanM
Update README.md
103d0c7 verified 10 months ago
  • .gitattributes
    1.48 kB
    initial commit about 3 years ago
  • README.md
    2.12 kB
    Update README.md 10 months ago
  • config.json
    69.7 kB
    Upload config.json almost 3 years ago
  • model.safetensors
    14 MB
    xet
    Adding `safetensors` variant of this model (#1) over 2 years ago
  • preprocessor_config.json
    175 Bytes
    Upload 3 files about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    14 MB
    xet
    Upload 2 files about 3 years ago