Spaces:
Sleeping
Sleeping
added changes to gitignore and app.py plus added car-logos folder
Browse files- app.py +1 -1
- car_logos.pt +3 -0
- model.py +1 -1
app.py
CHANGED
@@ -4,7 +4,7 @@ import cv2
|
|
4 |
from ultralytics import YOLO
|
5 |
|
6 |
# Load model (ensure the path to the weights file is correct)
|
7 |
-
model_path = "
|
8 |
detection_model = YOLO(model_path)
|
9 |
|
10 |
def predict_image(pil_image):
|
|
|
4 |
from ultralytics import YOLO
|
5 |
|
6 |
# Load model (ensure the path to the weights file is correct)
|
7 |
+
model_path = "car_logos.pt"
|
8 |
detection_model = YOLO(model_path)
|
9 |
|
10 |
def predict_image(pil_image):
|
car_logos.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6e0e7d70184bf8273fed8fda4ff5ded654784b4fa413de563b429153d6496e12
|
3 |
+
size 22403130
|
model.py
CHANGED
@@ -31,7 +31,7 @@ model = YOLO("yolov8s.pt")
|
|
31 |
model = YOLO("Car-Logos/train17/weights/best.pt")
|
32 |
validation_results = model.val(data="220180T_carlogos.v5i.yolov8-obb/data.yaml", device="cpu")
|
33 |
|
34 |
-
model.save("
|
35 |
|
36 |
|
37 |
|
|
|
31 |
model = YOLO("Car-Logos/train17/weights/best.pt")
|
32 |
validation_results = model.val(data="220180T_carlogos.v5i.yolov8-obb/data.yaml", device="cpu")
|
33 |
|
34 |
+
model.save("car_logos.pt")
|
35 |
|
36 |
|
37 |
|