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

sgugger
/
custom-resnet

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

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

  • Libraries
  • Transformers

    How to use sgugger/custom-resnet with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="sgugger/custom-resnet", 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("sgugger/custom-resnet", trust_remote_code=True)
    model = AutoModelForImageClassification.from_pretrained("sgugger/custom-resnet", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
custom-resnet
205 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model
1339456 verified about 1 year ago
  • .gitattributes
    1.23 kB
    Adding `safetensors` variant of this model about 1 year ago
  • config.json
    556 Bytes
    commit files to HF hub over 4 years ago
  • configuration_resnet.py
    1.14 kB
    commit files to HF hub over 4 years ago
  • model.safetensors
    103 MB
    xet
    Adding `safetensors` variant of this model about 1 year ago
  • modeling_resnet.py
    1.56 kB
    commit files to HF hub over 4 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    103 MB
    xet
    commit files to HF hub over 4 years ago