We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0850787 commit 59c0ddcCopy full SHA for 59c0ddc
demo/demo.py
@@ -1,5 +1,4 @@
1
import torch
2
-import time
3
from train.loss import *
4
5
class Demo:
@@ -25,8 +24,6 @@ def run(self):
25
24
26
num_batch = input_img.shape[0]
27
with torch.no_grad():
28
- start_time = time.time()
29
-
30
output = self.model(input_img)
31
best_box_list = non_max_suppression(output,
32
conf_thres=0.4,
@@ -42,4 +39,4 @@ def run(self):
42
39
if final_box_list is None:
43
40
continue
44
41
show_img = input_img[b].detach().cpu().numpy()
45
- drawBoxlist(show_img, final_box_list, mode=1)
+ drawBoxlist(show_img, final_box_list, mode=1, name = str(i)+"_"+str(b))
0 commit comments