Skip to content

Commit 59c0ddc

Browse files
committed
minor update
1 parent 0850787 commit 59c0ddc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

demo/demo.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import torch
2-
import time
32
from train.loss import *
43

54
class Demo:
@@ -25,8 +24,6 @@ def run(self):
2524

2625
num_batch = input_img.shape[0]
2726
with torch.no_grad():
28-
start_time = time.time()
29-
3027
output = self.model(input_img)
3128
best_box_list = non_max_suppression(output,
3229
conf_thres=0.4,
@@ -42,4 +39,4 @@ def run(self):
4239
if final_box_list is None:
4340
continue
4441
show_img = input_img[b].detach().cpu().numpy()
45-
drawBoxlist(show_img, final_box_list, mode=1)
42+
drawBoxlist(show_img, final_box_list, mode=1, name = str(i)+"_"+str(b))

0 commit comments

Comments
 (0)