Commit
·
495f432
1
Parent(s):
4d12ffc
Update README.md
Browse files
README.md
CHANGED
@@ -15,7 +15,8 @@ Vehicle inspection automation
|
|
15 |
Fleet management optimization
|
16 |
🚀 Enhance your car damage prediction tasks with the llm VIT BEIT model. Experience unprecedented accuracy and reliability for a wide range of applications. Get started with Hugging Face integration today!
|
17 |
# First Approach
|
18 |
-
|
|
|
19 |
from PIL import Image
|
20 |
from transformers import AutoImageProcessor, AutoModelForImageClassification
|
21 |
|
@@ -33,8 +34,10 @@ label_map = model.config.id2label
|
|
33 |
predicted_class_name = label_map[predicted_class_id]
|
34 |
|
35 |
print(f"Predicted class: {predicted_class_name} (probability: {predicted_proba:.4f})")
|
36 |
-
|
37 |
# 2nd Aprroach
|
|
|
38 |
from transformers import pipeline
|
39 |
|
40 |
-
pipe = pipeline("image-classification", model="beingamit99/car_damage_detection")
|
|
|
|
15 |
Fleet management optimization
|
16 |
🚀 Enhance your car damage prediction tasks with the llm VIT BEIT model. Experience unprecedented accuracy and reliability for a wide range of applications. Get started with Hugging Face integration today!
|
17 |
# First Approach
|
18 |
+
<CODE>
|
19 |
+
import numpy as np
|
20 |
from PIL import Image
|
21 |
from transformers import AutoImageProcessor, AutoModelForImageClassification
|
22 |
|
|
|
34 |
predicted_class_name = label_map[predicted_class_id]
|
35 |
|
36 |
print(f"Predicted class: {predicted_class_name} (probability: {predicted_proba:.4f})")
|
37 |
+
</CODE>
|
38 |
# 2nd Aprroach
|
39 |
+
<CODE>
|
40 |
from transformers import pipeline
|
41 |
|
42 |
+
pipe = pipeline("image-classification", model="beingamit99/car_damage_detection")
|
43 |
+
</CODE>
|