Spaces:
Runtime error
Runtime error
sshi
commited on
Commit
·
0a48b8a
1
Parent(s):
6d9e76a
App bug fix.
Browse files
app.py
CHANGED
|
@@ -84,17 +84,17 @@ model_yolos.eval()
|
|
| 84 |
|
| 85 |
# colors for visualization
|
| 86 |
colors = [
|
| 87 |
-
[0
|
| 88 |
-
[
|
| 89 |
-
[
|
| 90 |
-
[
|
| 91 |
-
[
|
| 92 |
-
[
|
| 93 |
-
[
|
| 94 |
-
[
|
| 95 |
-
[
|
| 96 |
-
[0
|
| 97 |
-
[
|
| 98 |
|
| 99 |
# for output bounding box post-processing
|
| 100 |
def box_cxcywh_to_xyxy(x):
|
|
|
|
| 84 |
|
| 85 |
# colors for visualization
|
| 86 |
colors = [
|
| 87 |
+
[ 0, 113, 188,],
|
| 88 |
+
[216, 82, 24,],
|
| 89 |
+
[236, 176, 31,],
|
| 90 |
+
[192, 202, 25,],
|
| 91 |
+
[118, 171, 47,],
|
| 92 |
+
[ 76, 189, 237,],
|
| 93 |
+
[ 46, 125, 188,],
|
| 94 |
+
[125, 171, 141,],
|
| 95 |
+
[125, 76, 237,],
|
| 96 |
+
[ 0, 82, 216,],
|
| 97 |
+
[189, 76, 47,]]
|
| 98 |
|
| 99 |
# for output bounding box post-processing
|
| 100 |
def box_cxcywh_to_xyxy(x):
|