Upgrading all packages
Browse files- README.md +13 -15
- app.py +2 -3
- requirements.txt +13 -15
README.md
CHANGED
@@ -13,21 +13,19 @@ app_file: app.py
|
|
13 |
|
14 |
## Packages
|
15 |
```requirements.txt
|
16 |
-
gradio==
|
17 |
-
matplotlib==3.
|
18 |
-
mediapipe==0.9
|
19 |
-
numpy==1.
|
20 |
-
opencv-contrib-python==4.
|
21 |
-
opencv-python==4.
|
22 |
-
pandas==1.
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
torchvision==0.14.1
|
30 |
-
tqdm==4.64.1
|
31 |
```
|
32 |
|
33 |
## How to use
|
|
|
13 |
|
14 |
## Packages
|
15 |
```requirements.txt
|
16 |
+
gradio==4.10.0
|
17 |
+
matplotlib==3.8.2
|
18 |
+
mediapipe==0.10.9
|
19 |
+
numpy==1.26.2
|
20 |
+
opencv-contrib-python==4.8.1.78
|
21 |
+
opencv-python==4.8.1.78
|
22 |
+
pandas==2.1.4
|
23 |
+
pytorch-lightning==2.1.2
|
24 |
+
scikit-learn==1.3.2
|
25 |
+
seaborn==0.13.0
|
26 |
+
torch==2.1.2
|
27 |
+
torchvision==0.16.2
|
28 |
+
tqdm==4.66.1
|
|
|
|
|
29 |
```
|
30 |
|
31 |
## How to use
|
app.py
CHANGED
@@ -82,8 +82,7 @@ with demo:
|
|
82 |
with gr.TabItem("Detect closed eyes"):
|
83 |
with gr.Row():
|
84 |
with gr.Column():
|
85 |
-
|
86 |
-
eye_cam_input = gr.Webcam(streaming=True)
|
87 |
eyes_button = gr.Button("Detect")
|
88 |
with gr.Column():
|
89 |
detection_output = gr.Image(label="Detection result (sorry for the creepiness)", )
|
@@ -91,7 +90,7 @@ with demo:
|
|
91 |
with gr.TabItem("Estimate blur"):
|
92 |
with gr.Row():
|
93 |
with gr.Column():
|
94 |
-
blur_cam_input = gr.
|
95 |
blur_button = gr.Button("Estimate blur")
|
96 |
with gr.Column():
|
97 |
laplacian_output = gr.Image(label="Laplacian filter view")
|
|
|
82 |
with gr.TabItem("Detect closed eyes"):
|
83 |
with gr.Row():
|
84 |
with gr.Column():
|
85 |
+
eye_cam_input = gr.Image(sources="webcam", streaming=True)
|
|
|
86 |
eyes_button = gr.Button("Detect")
|
87 |
with gr.Column():
|
88 |
detection_output = gr.Image(label="Detection result (sorry for the creepiness)", )
|
|
|
90 |
with gr.TabItem("Estimate blur"):
|
91 |
with gr.Row():
|
92 |
with gr.Column():
|
93 |
+
blur_cam_input = gr.Image(sources="webcam", streaming=True)
|
94 |
blur_button = gr.Button("Estimate blur")
|
95 |
with gr.Column():
|
96 |
laplacian_output = gr.Image(label="Laplacian filter view")
|
requirements.txt
CHANGED
@@ -1,15 +1,13 @@
|
|
1 |
-
gradio==4.
|
2 |
-
matplotlib==3.
|
3 |
-
mediapipe==0.10
|
4 |
-
numpy==1.
|
5 |
-
opencv-contrib-python==4.
|
6 |
-
opencv-python==4.
|
7 |
-
pandas==1.
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
torchvision==0.14.1
|
15 |
-
tqdm==4.64.1
|
|
|
1 |
+
gradio==4.10.0
|
2 |
+
matplotlib==3.8.2
|
3 |
+
mediapipe==0.10.9
|
4 |
+
numpy==1.26.2
|
5 |
+
opencv-contrib-python==4.8.1.78
|
6 |
+
opencv-python==4.8.1.78
|
7 |
+
pandas==2.1.4
|
8 |
+
pytorch-lightning==2.1.2
|
9 |
+
scikit-learn==1.3.2
|
10 |
+
seaborn==0.13.0
|
11 |
+
torch==2.1.2
|
12 |
+
torchvision==0.16.2
|
13 |
+
tqdm==4.66.1
|
|
|
|