Spaces:
Runtime error
Runtime error
Diego Fernández
commited on
Commit
•
66a4b8b
1
Parent(s):
7204716
chore: update Norfair to 2.2.0
Browse files- demo_utils/draw.py +2 -4
- requirements.txt +3 -3
demo_utils/draw.py
CHANGED
@@ -12,11 +12,9 @@ def draw(
|
|
12 |
fix_paths,
|
13 |
):
|
14 |
if track_points == "centroid":
|
15 |
-
norfair.draw_points(frame,
|
16 |
-
norfair.draw_tracked_objects(frame, tracked_objects)
|
17 |
elif track_points == "bbox":
|
18 |
-
norfair.draw_boxes(frame,
|
19 |
-
norfair.draw_tracked_boxes(frame, tracked_objects)
|
20 |
|
21 |
if fix_paths:
|
22 |
frame = paths_drawer.draw(frame, tracked_objects, coord_transformations)
|
|
|
12 |
fix_paths,
|
13 |
):
|
14 |
if track_points == "centroid":
|
15 |
+
norfair.draw_points(frame, tracked_objects)
|
|
|
16 |
elif track_points == "bbox":
|
17 |
+
norfair.draw_boxes(frame, tracked_objects)
|
|
|
18 |
|
19 |
if fix_paths:
|
20 |
frame = paths_drawer.draw(frame, tracked_objects, coord_transformations)
|
requirements.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
torch==1.12.1
|
2 |
torchvision==0.13.1
|
3 |
-
numpy==1.
|
4 |
pandas==1.3.5
|
5 |
rich==12.5.1
|
6 |
seaborn==0.12.0
|
7 |
opencv-python==4.6.0.66
|
8 |
-
|
9 |
-
gradio==3.
|
10 |
tqdm==4.64.1
|
|
|
1 |
torch==1.12.1
|
2 |
torchvision==0.13.1
|
3 |
+
numpy==1.23.0
|
4 |
pandas==1.3.5
|
5 |
rich==12.5.1
|
6 |
seaborn==0.12.0
|
7 |
opencv-python==4.6.0.66
|
8 |
+
norfair==2.2.0
|
9 |
+
gradio==3.14.0
|
10 |
tqdm==4.64.1
|