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

  • Log In
  • Sign Up

leftthomas
/
resnet50

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

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

  • Libraries
  • Transformers

    How to use leftthomas/resnet50 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="leftthomas/resnet50", 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("leftthomas/resnet50", trust_remote_code=True)
    model = AutoModelForImageClassification.from_pretrained("leftthomas/resnet50", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
resnet50
103 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 22 commits
leftthomas's picture
leftthomas
Update README.md
19128d8 about 4 years ago
  • .gitattributes
    1.18 kB
    initial commit about 4 years ago
  • README.md
    1.01 kB
    Update README.md about 4 years ago
  • config.json
    425 Bytes
    Update config.json about 4 years ago
  • configuration_resnet.py
    535 Bytes
    Upload configuration_resnet.py about 4 years ago
  • modeling_resnet.py
    792 Bytes
    Upload modeling_resnet.py about 4 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    103 MB
    xet
    Upload pytorch_model.bin with git-lfs about 4 years ago