You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to run iva.py, I get an error, and the specific error returned is [05/23/2023-08:41:34] [TRT] [E] 1: [stdArchiveReader.cpp::StdArchiveReader::30] Error Code 1: Serialization (Serialization assertion magicTagRead == magicTag failed.Magic tag does not match) [05/23/2023-08:41:34] [TRT] [E] 4: [runtime.cpp::deserializeCudaEngine::50] Error Code 4: Internal Error (Engine deserialization failed.) Traceback (most recent call last): File "iva.py", line 8, in <module> from model import * File "/home/wheeltec/ActionAI/model.py", line 73, in <module> model_trt.load_state_dict(torch.load(MODEL_PATH)) File "/home/wheeltec/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1037, in load_state_dict load(self) File "/home/wheeltec/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1032, in load state_dict, prefix, local_metadata, True, missing_keys, unexpected_keys, error_msgs) File "/usr/local/lib/python3.6/dist-packages/torch2trt-0.4.0-py3.6-linux-aarch64.egg/torch2trt/torch2trt.py", line 591, in _load_from_state_dict self.context = self.engine.create_execution_context() AttributeError: 'NoneType' object has no attribute 'create_execution_context'
The text was updated successfully, but these errors were encountered:
When I try to run iva.py, I get an error, and the specific error returned is
[05/23/2023-08:41:34] [TRT] [E] 1: [stdArchiveReader.cpp::StdArchiveReader::30] Error Code 1: Serialization (Serialization assertion magicTagRead == magicTag failed.Magic tag does not match) [05/23/2023-08:41:34] [TRT] [E] 4: [runtime.cpp::deserializeCudaEngine::50] Error Code 4: Internal Error (Engine deserialization failed.) Traceback (most recent call last): File "iva.py", line 8, in <module> from model import * File "/home/wheeltec/ActionAI/model.py", line 73, in <module> model_trt.load_state_dict(torch.load(MODEL_PATH)) File "/home/wheeltec/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1037, in load_state_dict load(self) File "/home/wheeltec/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1032, in load state_dict, prefix, local_metadata, True, missing_keys, unexpected_keys, error_msgs) File "/usr/local/lib/python3.6/dist-packages/torch2trt-0.4.0-py3.6-linux-aarch64.egg/torch2trt/torch2trt.py", line 591, in _load_from_state_dict self.context = self.engine.create_execution_context() AttributeError: 'NoneType' object has no attribute 'create_execution_context'
The text was updated successfully, but these errors were encountered: