Instructions to use SamHUNG03/Finetuned-Car-Classifier2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SamHUNG03/Finetuned-Car-Classifier2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="SamHUNG03/Finetuned-Car-Classifier2") 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("SamHUNG03/Finetuned-Car-Classifier2") model = AutoModelForImageClassification.from_pretrained("SamHUNG03/Finetuned-Car-Classifier2") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +12 -12
config.json
CHANGED
|
@@ -8,12 +8,12 @@
|
|
| 8 |
"hidden_dropout_prob": 0.0,
|
| 9 |
"hidden_size": 768,
|
| 10 |
"id2label": {
|
| 11 |
-
"0": "
|
| 12 |
-
"1": "
|
| 13 |
-
"10": "
|
| 14 |
-
"100": "
|
| 15 |
-
"101": "
|
| 16 |
-
"102": "
|
| 17 |
"103": "Ferrari_FF_Coupe_2012",
|
| 18 |
"104": "Fisker_Karma_Sedan_2012",
|
| 19 |
"105": "Ford_E-Series_Wagon_Van_2012",
|
|
@@ -209,12 +209,12 @@
|
|
| 209 |
"initializer_range": 0.02,
|
| 210 |
"intermediate_size": 3072,
|
| 211 |
"label2id": {
|
| 212 |
-
"
|
| 213 |
-
"
|
| 214 |
-
"
|
| 215 |
-
"
|
| 216 |
-
"
|
| 217 |
-
"
|
| 218 |
"Acura_ZDX_Hatchback_2012": "6",
|
| 219 |
"Aston_Martin_V8_Vantage_Convertible_2012": "7",
|
| 220 |
"Aston_Martin_V8_Vantage_Coupe_2012": "8",
|
|
|
|
| 8 |
"hidden_dropout_prob": 0.0,
|
| 9 |
"hidden_size": 768,
|
| 10 |
"id2label": {
|
| 11 |
+
"0": "Audi A5 Coupe 2012",
|
| 12 |
+
"1": "Audi R8 Coupe 2012",
|
| 13 |
+
"10": "Audi S4 Sedan 2012",
|
| 14 |
+
"100": "Audi S5 Convertible 2012",
|
| 15 |
+
"101": "Audi S5 Coupe 2012",
|
| 16 |
+
"102": "Audi TTS Coupe 2012",
|
| 17 |
"103": "Ferrari_FF_Coupe_2012",
|
| 18 |
"104": "Fisker_Karma_Sedan_2012",
|
| 19 |
"105": "Ford_E-Series_Wagon_Van_2012",
|
|
|
|
| 209 |
"initializer_range": 0.02,
|
| 210 |
"intermediate_size": 3072,
|
| 211 |
"label2id": {
|
| 212 |
+
"Audi A5 Coupe 2012": "0",
|
| 213 |
+
"Audi R8 Coupe 2012": "1",
|
| 214 |
+
"Audi S4 Sedan 2012": "2",
|
| 215 |
+
"Audi S5 Convertible 2012": "3",
|
| 216 |
+
"Audi S5 Coupe 2012": "4",
|
| 217 |
+
"Audi TTS Coupe 2012": "5",
|
| 218 |
"Acura_ZDX_Hatchback_2012": "6",
|
| 219 |
"Aston_Martin_V8_Vantage_Convertible_2012": "7",
|
| 220 |
"Aston_Martin_V8_Vantage_Coupe_2012": "8",
|