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

microsoft
/
resnet-18

Image Classification
Transformers
PyTorch
google-tensorflow TensorFlow
Safetensors
resnet
vision
Model card Files Files and versions
xet
Community
6

Instructions to use microsoft/resnet-18 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use microsoft/resnet-18 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="microsoft/resnet-18")
    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("microsoft/resnet-18")
    model = AutoModelForImageClassification.from_pretrained("microsoft/resnet-18")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
resnet-18 / onnx
46.8 MB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 1 commit
max-tao's picture
max-tao
Adding ONNX file of this model
dee4006 over 2 years ago
  • config.json
    69.7 kB
    Adding ONNX file of this model over 2 years ago
  • model.onnx
    46.8 MB
    xet
    Adding ONNX file of this model over 2 years ago
  • preprocessor_config.json
    410 Bytes
    Adding ONNX file of this model over 2 years ago