-
Notifications
You must be signed in to change notification settings - Fork 328
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
No effect on Tensorrt7 #89
Comments
@TimVerion Of course you should rebuild the engine once the TRT version changes. |
Thank you very much for your reply, but I have cleaned up the engine. Currently, the verification is carried out in c++11 tensorrt-7.0.0.11 environment. The same code can be normally reasoned on tensorrt5, but when it is changed to tensorrt7, the feature diagram will not light up |
@TimVerion Maybe you should take a look at the version compatibility between MXNET, ONNX used in MXNET, TensorRT and ONNX used in TensorRT. |
I has the same question @TimVerion, Has any suggestion to solve this problem? |
Try to match various versions, but it still has no effect. |
@TimVerion Recently, I do not work on MXNet, and switch to PyTorch. In PyTorch, I can successfully use TRT 7.0. I will make a whole new repo available as soon as possible. I think if you can ask for help in MXNet community. |
Thank you for your reply, and I am looking forward to the release of your Pytorch version. |
@YonghaoHe Hi, can you share about switch MXNet to PyTorch. THX!! |
@103061634 We are still working on PyTorch version which will be epanded to multi-class detection with some new features. This version will be released in the folowing two months. |
Hi, I also encountered this problem and found that it was caused by the onnx version, but I don’t know the original onnx version number of the project. Have you solved this problem? Can you provide some suggestions? (Or some other face detection solutions that are quickly used in tensorRT7) |
I dig into and found it is caused by the softmax alignment between TensorRT and ONNXruntime. For TensorRT <=6 is like mxnet , softmax by axis, TRT7 assume the first dimension is N and flatten the remaining dimension. so I transpose the axis as the last layer, and reshape into 2D, e.g so I modify the below code to change this line in symbol_farm to
onnx version: onnx==1.4
and compile the engine with trtexec --onnx=trt7.onnx --saveEngine=trt7.plan --fp16 --verbose --dumpOutput --explicitBatch for docker user, you can run this under the onnx folder docker run --rm -it \
--runtime nvidia \
-v ${PWD}:/workdir \
-w /workdir \
nvcr.io/nvidia/tensorrt:21.03-py3 \
trtexec --onnx=trt7.onnx --saveEngine=trt7.plan --fp16 --verbose --dumpOutput --explicitBatch |
The model obtained by LFFD training is converted to ONNX. Why can it be used in Tensorrt5 but not in Tensorrt7?
A new Engine has been generated here
The text was updated successfully, but these errors were encountered: