Spaces:
Runtime error
Runtime error
oskarastrom
commited on
Commit
•
cb90e6f
1
Parent(s):
24cdfbf
Update inference.py
Browse files- inference.py +5 -2
inference.py
CHANGED
@@ -154,9 +154,12 @@ def do_detection(dataloader, model, device, gp=None, batch_size=BATCH_SIZE, verb
|
|
154 |
with torch.no_grad():
|
155 |
inf_out, _ = model(img, augment=False)
|
156 |
|
|
|
|
|
157 |
print(inf_out.shape)
|
158 |
-
print(inf_out[1, :])
|
159 |
-
|
|
|
160 |
|
161 |
# Save shapes for resizing to original shape
|
162 |
batch_shape = []
|
|
|
154 |
with torch.no_grad():
|
155 |
inf_out, _ = model(img, augment=False)
|
156 |
|
157 |
+
|
158 |
+
32, 30240, 6
|
159 |
print(inf_out.shape)
|
160 |
+
print(inf_out[1, 1, :])
|
161 |
+
w = inf_out[:, :, 2] - inf_out[:, :, 0]
|
162 |
+
print(w.shape)
|
163 |
|
164 |
# Save shapes for resizing to original shape
|
165 |
batch_shape = []
|