Instructions to use yangy50/garbage-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yangy50/garbage-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="yangy50/garbage-classification") 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("yangy50/garbage-classification") model = AutoModelForImageClassification.from_pretrained("yangy50/garbage-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
This 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.eb79297
-
Upload README.md
Yuechen Yang9bfbbce -
Upload pytorch_model.bin with git-lfs
Yuechen Yang868dd89 -
Upload config.json
Yuechen Yangcdf5a0f -
Upload preprocessor_config.json
Yuechen Yang22b9791 -
Delete config.json
Yuechen Yang6f1951f -
Delete preprocessor_config.json
Yuechen Yangb1e00e4 -
Delete pytorch_model.bin
Yuechen Yangf7fba52 -
Delete README.md
Yuechen Yange0a5060 -
Update README.md
Yuechen Yang9fc81e6 -
Upload pytorch_model.bin with git-lfs
Yuechen Yang15ac519 -
Delete pytorch_model.bin
Yuechen Yangc8c706f -
Update README.md
Yuechen Yangbc1c7e3 -
Update README.md
Yuechen Yang393860e -
Update README.md
Yuechen Yange1c3a18
-
Create README.md
Yuechen Yang3e3195e
-
Upload preprocessor_config.json
Yuechen Yang4e3ae34 -
add model
yuechen-yang59fc7ef -
Upload config.json
Yuechen Yangf87a741 -
initial commit
Yuechen Yang4d2a523