Create inference_video_model.py
Browse files- inference_video_model.py +5 -0
inference_video_model.py
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from transformers import AutoModelForImageClassification, AutoFeatureExtractor
|
| 2 |
+
|
| 3 |
+
model = DrowsinessModel(model_path="MonikaG7/FatiqueModels")
|
| 4 |
+
result = model.predict("path_to_video.mp4")
|
| 5 |
+
print("Result:", result)
|