Image Classification
Transformers
PyTorch
English
drowsiness_detector
computer-vision
drowsiness-detection
driver-safety
cnn
tensorflow
Instructions to use ckcl/driver-drowsiness-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ckcl/driver-drowsiness-detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="ckcl/driver-drowsiness-detector") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ckcl/driver-drowsiness-detector", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Create requirements.txt
Browse files- requirements.txt +15 -0
requirements.txt
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
tensorflow==2.15.0
|
| 2 |
+
opencv-python==4.8.1.78
|
| 3 |
+
numpy==1.24.3
|
| 4 |
+
scikit-learn==1.3.2
|
| 5 |
+
gradio==4.14.0
|
| 6 |
+
Pillow==10.0.0
|
| 7 |
+
ffmpeg-python==0.2.0
|
| 8 |
+
huggingface-hub>=0.21.0
|
| 9 |
+
transformers==4.35.2
|
| 10 |
+
torch>=2.0.0
|
| 11 |
+
torchvision>=0.15.0
|
| 12 |
+
tqdm==4.66.1
|
| 13 |
+
scipy>=1.10.0
|
| 14 |
+
mediapipe==0.10.9
|
| 15 |
+
safetensors>=0.4.0
|