Spaces:
Runtime error
Runtime error
Hector Lopez
commited on
Commit
•
d248ce1
1
Parent(s):
6ce69f0
Added debian packages installation
Browse files- app.py +1 -0
- model.py +0 -1
- packages.txt +1 -0
- requirements.txt +1 -1
app.py
CHANGED
@@ -22,6 +22,7 @@ def plot_img_no_mask(image, boxes):
|
|
22 |
pt1 = (x1, y1)
|
23 |
pt2 = (x2, y2)
|
24 |
cv2.rectangle(image, pt1, pt2, (220,0,0), thickness=5)
|
|
|
25 |
plt.axis('off')
|
26 |
ax.imshow(image)
|
27 |
fig.savefig("img.png", bbox_inches='tight')
|
|
|
22 |
pt1 = (x1, y1)
|
23 |
pt2 = (x2, y2)
|
24 |
cv2.rectangle(image, pt1, pt2, (220,0,0), thickness=5)
|
25 |
+
|
26 |
plt.axis('off')
|
27 |
ax.imshow(image)
|
28 |
fig.savefig("img.png", bbox_inches='tight')
|
model.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
from icevision import *
|
2 |
import collections
|
3 |
-
import cv2
|
4 |
import PIL
|
5 |
import torch
|
6 |
import numpy as np
|
|
|
1 |
from icevision import *
|
2 |
import collections
|
|
|
3 |
import PIL
|
4 |
import torch
|
5 |
import numpy as np
|
packages.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
libgl1-mesa-glx
|
requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
icevision[full]
|
2 |
-
matplotlib
|
|
|
1 |
icevision[full]
|
2 |
+
matplotlib
|