Skip to content

Commit 6b36128

Browse files
authored
🐛 Bugfix: TensorRT output types (#395)
1 parent b8957b3 commit 6b36128

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rtdetrv2_pytorch/references/deploy/rtdetrv2_tensorrt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,6 @@ def draw(images, labels, boxes, scores, thrh = 0.6):
225225
'orig_target_sizes': orig_size.to(args.device),
226226
}
227227

228-
labels, boxes, scores = m(blob)
228+
output = m(blob)
229229

230-
draw([im_pil], labels, boxes, scores)
230+
draw([im_pil], output['labels'], output['boxes'], output['scores'])

0 commit comments

Comments
 (0)