-
Notifications
You must be signed in to change notification settings - Fork 46
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
outputs are different for torch and trt #15
Comments
FP16 or FP32? How about the max_diff printed by main.py? |
Traceback (most recent call last): |
Can you provide the image for reproduction? |
okay, I'm getting a max difference of 0.0007 between torch and tensorrt. But when I'm passing the array to nms, it's giving none |
how can I visualize the results |
That's strange. You can create a torch tensor from the numpy array and feed the tensor to nms module. I'm planning to implement it in following days. |
I did that, but something is wrong with it
Sent from LG.
…On Sun, 28 Jun, 2020, 4:51 PM autoregister, ***@***.***> wrote:
That's strange. You can create a torch tensor from the numpy array and
feed the tensor to nms module. I'm planning to implement it in following
days.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE4JGPTZGCVE7KBDIBPCJRDRY4RUTANCNFSM4OKFI3LA>
.
|
it's working fine but when i try to infer over a directory of images, it gives pycuda error after 8 images |
I've implemented NMS now. For previous shape mismatch problem, I think it's caused by variant shapes of images. Torch model can adapt to that, but TRT only supports fixed input size. |
Did you call allocate buffers for multiple times? Maybe you run into OOM error on GPU. |
same problem as @wudashuo |
yolov5现在release2.0版了,然后Tutorials里也有TensorRT Deployment了,你可以去看看,我已经成功了,检测也正常了,但是必须用最新的代码重新训练模型,因为2.0的模型结构变了。 |
好的,谢谢。 |
Updated to v3.0. Upsample is no longer needed to be replaced. Note that, the GPU NMS is different from the default NMS in pytorch. |
i'm getting a weird output with tensorrt, for the same image torch is giving good results. any help would be appreciated
The text was updated successfully, but these errors were encountered: