Update video_model.py
Browse files- video_model.py +2 -2
video_model.py
CHANGED
|
@@ -4,8 +4,8 @@ from transformers import AutoModelForImageClassification, AutoFeatureExtractor
|
|
| 4 |
class DrowsinessModel:
|
| 5 |
def __init__(self, model_path, threshold=0.15):
|
| 6 |
# Инициализация модели и экстрактора признаков
|
| 7 |
-
self.model = AutoModelForImageClassification.from_pretrained('MonikaG7/
|
| 8 |
-
self.feature_extractor = AutoFeatureExtractor.from_pretrained('MonikaG7/
|
| 9 |
self.threshold = threshold
|
| 10 |
|
| 11 |
def predict(self, video_path):
|
|
|
|
| 4 |
class DrowsinessModel:
|
| 5 |
def __init__(self, model_path, threshold=0.15):
|
| 6 |
# Инициализация модели и экстрактора признаков
|
| 7 |
+
self.model = AutoModelForImageClassification.from_pretrained('MonikaG7/fine-tuned_fatique_model')
|
| 8 |
+
self.feature_extractor = AutoFeatureExtractor.from_pretrained('MonikaG7/fine-tuned_fatique_model')
|
| 9 |
self.threshold = threshold
|
| 10 |
|
| 11 |
def predict(self, video_path):
|