Image Classification
Transformers
TensorBoard
Safetensors
PyTorch
vit
huggingpics
Eval Results (legacy)
Instructions to use prad2007/car_damage_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prad2007/car_damage_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="prad2007/car_damage_classifier") 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("prad2007/car_damage_classifier") model = AutoModelForImageClassification.from_pretrained("prad2007/car_damage_classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
commit files to HF hub
Browse files- .gitattributes +4 -0
- README.md +11 -7
- config.json +8 -6
- images/car_with_cracked_front_or_rear_windscreen.jpg +3 -0
- images/car_with_large_dent_on_door.jpg +3 -0
- images/car_with_missing_headlamp.jpg +3 -0
- images/car_with_small_dent_on_door.jpg +3 -0
- model.safetensors +2 -2
- runs/events.out.tfevents.1716956335.bc878b7b5470.345.1 +3 -0
.gitattributes
CHANGED
|
@@ -36,3 +36,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 36 |
images/corgi.jpg filter=lfs diff=lfs merge=lfs -text
|
| 37 |
images/samoyed.jpg filter=lfs diff=lfs merge=lfs -text
|
| 38 |
images/shiba_inu.jpg filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
images/corgi.jpg filter=lfs diff=lfs merge=lfs -text
|
| 37 |
images/samoyed.jpg filter=lfs diff=lfs merge=lfs -text
|
| 38 |
images/shiba_inu.jpg filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
images/car_with_cracked_front_or_rear_windscreen.jpg filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
images/car_with_large_dent_on_door.jpg filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
images/car_with_missing_headlamp.jpg filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
images/car_with_small_dent_on_door.jpg filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -15,7 +15,7 @@ model-index:
|
|
| 15 |
metrics:
|
| 16 |
- name: Accuracy
|
| 17 |
type: accuracy
|
| 18 |
-
value: 0.
|
| 19 |
---
|
| 20 |
|
| 21 |
# car_damage_classifier
|
|
@@ -31,14 +31,18 @@ Report any issues with the demo at the [github repo](https://github.com/nateraw/
|
|
| 31 |
## Example Images
|
| 32 |
|
| 33 |
|
| 34 |
-
####
|
| 35 |
|
| 36 |
-

|
| 37 |
|
| 38 |
+
#### car with large dent on door
|
| 39 |
|
| 40 |
+

|
| 41 |
|
| 42 |
+
#### car with missing headlamp
|
| 43 |
|
| 44 |
+

|
| 45 |
+
|
| 46 |
+
#### car with small dent on door
|
| 47 |
+
|
| 48 |
+

|
config.json
CHANGED
|
@@ -9,17 +9,19 @@
|
|
| 9 |
"hidden_dropout_prob": 0.0,
|
| 10 |
"hidden_size": 768,
|
| 11 |
"id2label": {
|
| 12 |
-
"0": "
|
| 13 |
-
"1": "
|
| 14 |
-
"2": "
|
|
|
|
| 15 |
},
|
| 16 |
"image_size": 224,
|
| 17 |
"initializer_range": 0.02,
|
| 18 |
"intermediate_size": 3072,
|
| 19 |
"label2id": {
|
| 20 |
-
"
|
| 21 |
-
"
|
| 22 |
-
"
|
|
|
|
| 23 |
},
|
| 24 |
"layer_norm_eps": 1e-12,
|
| 25 |
"model_type": "vit",
|
|
|
|
| 9 |
"hidden_dropout_prob": 0.0,
|
| 10 |
"hidden_size": 768,
|
| 11 |
"id2label": {
|
| 12 |
+
"0": "car with cracked front or rear windscreen",
|
| 13 |
+
"1": "car with large dent on door",
|
| 14 |
+
"2": "car with missing headlamp",
|
| 15 |
+
"3": "car with small dent on door"
|
| 16 |
},
|
| 17 |
"image_size": 224,
|
| 18 |
"initializer_range": 0.02,
|
| 19 |
"intermediate_size": 3072,
|
| 20 |
"label2id": {
|
| 21 |
+
"car with cracked front or rear windscreen": "0",
|
| 22 |
+
"car with large dent on door": "1",
|
| 23 |
+
"car with missing headlamp": "2",
|
| 24 |
+
"car with small dent on door": "3"
|
| 25 |
},
|
| 26 |
"layer_norm_eps": 1e-12,
|
| 27 |
"model_type": "vit",
|
images/car_with_cracked_front_or_rear_windscreen.jpg
ADDED
|
Git LFS Details
|
images/car_with_large_dent_on_door.jpg
ADDED
|
Git LFS Details
|
images/car_with_missing_headlamp.jpg
ADDED
|
Git LFS Details
|
images/car_with_small_dent_on_door.jpg
ADDED
|
Git LFS Details
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1516813654ccce4628b2d0560149cd63ae71b3627eaa031f899829ebfaf8a08
|
| 3 |
+
size 343230128
|
runs/events.out.tfevents.1716956335.bc878b7b5470.345.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0bcbb4f48349102c289364f168831fa69bc539155fe15673a69f4590eed12e54
|
| 3 |
+
size 1210
|