Spaces:
Runtime error
Runtime error
Update classify.py
Browse files- classify.py +1 -1
classify.py
CHANGED
@@ -3,7 +3,7 @@ from ultralytics import YOLO
|
|
3 |
|
4 |
class Classification:
|
5 |
def __init__(self) -> None:
|
6 |
-
self.__cls_model = YOLO('
|
7 |
|
8 |
def classify_defect(self, image_path) -> pd.DataFrame:
|
9 |
result_cls = self.__cls_model.predict(image_path, stream=False)
|
|
|
3 |
|
4 |
class Classification:
|
5 |
def __init__(self) -> None:
|
6 |
+
self.__cls_model = YOLO('model/cls_best.pt')
|
7 |
|
8 |
def classify_defect(self, image_path) -> pd.DataFrame:
|
9 |
result_cls = self.__cls_model.predict(image_path, stream=False)
|