Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bugfix: TensorRT output types #395

Merged
merged 1 commit into from
Jul 29, 2024
Merged

Conversation

Hitbee-dev
Copy link
Contributor

The output of labels, boxes, scores in rtdetrv2_tensorrt.py at line 228 should be changed as follows since they are of dictionary type.

Before:

labels, boxes, scores = m(blob)

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

After:

output = m(blob)

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

Now, the RT-DETR model converted to TensorRT can produce recognition results correctly.

@lyuwenyu lyuwenyu merged commit 6b36128 into lyuwenyu:main Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants