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

ERROR: 1: [stdArchiveReader.cpp::StdArchiveReader::30] Error Code 1: Serialization (Serialization assertion magicTagRead == kMAGIC_TAG failed.Magic tag does not match) #2

Open
leayz-888 opened this issue Mar 27, 2023 · 4 comments

Comments

@leayz-888
Copy link

您好,我根据您的提供的指令,成功生成了pp_pfe_fp16_python_training2.trt和pp_rpn_fp32_python_training2.trt,编译也通过了,但在运行的时候报错:
ERROR: 1: [stdArchiveReader.cpp::StdArchiveReader::30] Error Code 1: Serialization (Serialization assertion magicTagRead == kMAGIC_TAG failed.Magic tag does not match)
ERROR: 4: [runtime.cpp::deserializeCudaEngine::50] Error Code 4: Internal Error (Engine deserialization failed.)
ERROR: 1: [stdArchiveReader.cpp::StdArchiveReader::30] Error Code 1: Serialization (Serialization assertion magicTagRead == kMAGIC_TAG failed.Magic tag does not match)
ERROR: 4: [runtime.cpp::deserializeCudaEngine::50] Error Code 4: Internal Error (Engine deserialization failed.)
Failed to load trt file.Segmentation fault (core dumped)
engine在反序列化时候报错,我的tensorrt版本是8.4.1.5,请问这是什么原因呢?

@Forgeaheadye
Copy link

Hello, I also encountered the same problem. I used TensorRT 8.5.1.7 when converting the ONNX model and generating the TRT model

@Forgeaheadye
Copy link

If you have solved this problem, can you reply to me on how to do it? I would greatly appreciate it

@Forgeaheadye
Copy link

您好,我也遇到了相同的问题,请问您最后怎么解决的呢

@Forgeaheadye
Copy link

Hello, I also encountered the same problem. I used TensorRT 8.5.1.7 when converting the ONNX model and generating the TRT model
Hello, I also encountered the same problem. TensorRT 8.5.1.7. thank you very much

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

No branches or pull requests

2 participants