Spaces:
Build error
Build error
sabrinabenas
commited on
Commit
β’
2c98aa2
1
Parent(s):
8aa3d1c
test
Browse files
app.py
CHANGED
@@ -205,7 +205,7 @@ def predict_pipeline(img_input,
|
|
205 |
md_results = predict_md(img_input,
|
206 |
mega_model_input,
|
207 |
size=640) #Image.fromarray(results.imgs[0])
|
208 |
-
pdb.set_trace()
|
209 |
################################################################
|
210 |
# Obtain animal crops for bboxes with confidence above th
|
211 |
|
@@ -243,7 +243,7 @@ def predict_pipeline(img_input,
|
|
243 |
dlc_proc)
|
244 |
|
245 |
# Produce final image
|
246 |
-
img_background = Image.fromarray(md_results.
|
247 |
# Image.fromarray(md_results.imgs[0]) --> (640, 479)
|
248 |
# img_input.size ---> (259, 194)
|
249 |
# pdb.set_trace()
|
|
|
205 |
md_results = predict_md(img_input,
|
206 |
mega_model_input,
|
207 |
size=640) #Image.fromarray(results.imgs[0])
|
208 |
+
#pdb.set_trace()
|
209 |
################################################################
|
210 |
# Obtain animal crops for bboxes with confidence above th
|
211 |
|
|
|
243 |
dlc_proc)
|
244 |
|
245 |
# Produce final image
|
246 |
+
img_background = Image.fromarray(md_results.ims[0]) # img_input or Image.fromarray(md_results.imgs[0])?
|
247 |
# Image.fromarray(md_results.imgs[0]) --> (640, 479)
|
248 |
# img_input.size ---> (259, 194)
|
249 |
# pdb.set_trace()
|