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

  • Log In
  • Sign Up

sgugger
/
custom-resnet50d

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

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

  • Libraries
  • Transformers

    How to use sgugger/custom-resnet50d with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="sgugger/custom-resnet50d", 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-resnet50d", trust_remote_code=True)
    model = AutoModelForImageClassification.from_pretrained("sgugger/custom-resnet50d", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Adding `safetensors` variant of this model

#5 opened over 1 year ago by
SFconvertbot

Delete pytorch_model.bin

#4 opened over 2 years ago by
hikmatfarhat

Delete pytorch_model.bin

#3 opened over 2 years ago by
hikmatfarhat

Is it possible to enable the widget for my custom models in this way?

1
#2 opened about 3 years ago by
hzhwcmhf

Is this still the recommended way of sharing custom models?

5
#1 opened over 3 years ago by
sam-mosaic
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs