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

Small bug in rtdetr #8680

Closed
rydenisbak opened this issue Oct 20, 2023 · 1 comment
Closed

Small bug in rtdetr #8680

rydenisbak opened this issue Oct 20, 2023 · 1 comment

Comments

@rydenisbak
Copy link

valid_WH = paddle.to_tensor([h, w]).astype(dtype)

I got problem with detections if image width and height is not equal.
This fix solve my problem
valid_WH = paddle.to_tensor([h, w]).astype(dtype) -> valid_WH = paddle.to_tensor([w, h]).astype(dtype)

@lyuwenyu
Copy link
Collaborator

Thanks, It has been fixed in rtdetr repo. I will cherry-pick this into ppdet in future. @rydenisbak

https://github.com/lyuwenyu/RT-DETR/blob/main/rtdetr_paddle/ppdet/modeling/transformers/rtdetr_transformer.py#L465

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants