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")# pip install -U transformers accelerate # 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, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.e2984c0
-
Update README.md
19128d8 -
Update README.md
c9579f7 -
Update config.json
c8189a8 -
Update config.json
c937b58 -
Update README.md
47d5ce2 -
Update README.md
a03842c -
Upload pytorch_model.bin with git-lfs
445a59b -
Upload modeling_resnet.py
21e720a -
Upload configuration_resnet.py
901629b -
Upload config.json
5e92eb3 -
Delete pytorch_model.bin
af7f2a3 -
Delete config.json
2381d50 -
Update README.md
b7b70bc -
Upload pytorch_model.bin with git-lfs
1fecfb8 -
Upload config.json
96e3c54 -
Delete config.json
f9a8fa1 -
Delete pytorch_model.bin
2bfaafb
-
Update config.json
a940533 -
Create config.json
af4062b -
Upload pytorch_model.bin with git-lfs
c9c12e0 -
Update README.md
a56c920 -
initial commit
28236f2