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")# 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
Yuechen Yang commited on
Commit ·
b1e00e4
1
Parent(s): f7fba52
Delete preprocessor_config.json
Browse files- preprocessor_config.json +0 -17
preprocessor_config.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"do_normalize": true,
|
| 3 |
-
"do_resize": true,
|
| 4 |
-
"feature_extractor_type": "ViTFeatureExtractor",
|
| 5 |
-
"image_mean": [
|
| 6 |
-
0.5,
|
| 7 |
-
0.5,
|
| 8 |
-
0.5
|
| 9 |
-
],
|
| 10 |
-
"image_std": [
|
| 11 |
-
0.5,
|
| 12 |
-
0.5,
|
| 13 |
-
0.5
|
| 14 |
-
],
|
| 15 |
-
"resample": 2,
|
| 16 |
-
"size": 224
|
| 17 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|