Skip to content

Commit

Permalink
🐛 Bugfix: TensorRT output types (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitbee-dev authored Jul 29, 2024
1 parent b8957b3 commit 6b36128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rtdetrv2_pytorch/references/deploy/rtdetrv2_tensorrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,6 @@ def draw(images, labels, boxes, scores, thrh = 0.6):
'orig_target_sizes': orig_size.to(args.device),
}

labels, boxes, scores = m(blob)
output = m(blob)

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

0 comments on commit 6b36128

Please sign in to comment.