Seokju Cho
commited on
Commit
•
604efc8
1
Parent(s):
91a5da0
put to numpy
Browse files
app.py
CHANGED
@@ -237,7 +237,7 @@ def track(
|
|
237 |
]) / torch.tensor([
|
238 |
VIDEO_INPUT_RESO[1], VIDEO_INPUT_RESO[0]
|
239 |
])
|
240 |
-
tracks =
|
241 |
|
242 |
|
243 |
occlusion_logits = output['occlusion']
|
@@ -246,7 +246,8 @@ def track(
|
|
246 |
expected_dist = output['expected_dist']
|
247 |
pred_occ = 1 - (1 - pred_occ) * (1 - torch.sigmoid(expected_dist))
|
248 |
|
249 |
-
pred_occ = (pred_occ > 0.5)[0].cpu()
|
|
|
250 |
|
251 |
# make color array
|
252 |
colors = []
|
|
|
237 |
]) / torch.tensor([
|
238 |
VIDEO_INPUT_RESO[1], VIDEO_INPUT_RESO[0]
|
239 |
])
|
240 |
+
tracks = np.array(tracks)
|
241 |
|
242 |
|
243 |
occlusion_logits = output['occlusion']
|
|
|
246 |
expected_dist = output['expected_dist']
|
247 |
pred_occ = 1 - (1 - pred_occ) * (1 - torch.sigmoid(expected_dist))
|
248 |
|
249 |
+
pred_occ = (pred_occ > 0.5)[0].cpu()
|
250 |
+
pred_occ = np.array(pred_occ)
|
251 |
|
252 |
# make color array
|
253 |
colors = []
|