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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

linsa11
/
MyResnet_resnet18

Image Classification
Transformers
Safetensors
resnet
custom_code
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Transformers

    How to use linsa11/MyResnet_resnet18 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="linsa11/MyResnet_resnet18", 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("linsa11/MyResnet_resnet18", trust_remote_code=True)
    model = AutoModelForImageClassification.from_pretrained("linsa11/MyResnet_resnet18", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
MyResnet_resnet18
45.1 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
linsa11's picture
linsa11
Upload model
fb22435 verified almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    5.17 kB
    Upload model almost 2 years ago
  • config.json
    474 Bytes
    Upload model almost 2 years ago
  • configuration_MyResnet.py
    960 Bytes
    Upload model almost 2 years ago
  • model.safetensors
    45.1 MB
    xet
    Upload model almost 2 years ago
  • modeling_MyResnet.py
    5.95 kB
    Upload model almost 2 years ago