I am trying to convert the pytorch model to onnx, and an error is reported after the above code runs:
AttributeError: ‘collections.OrderedDict’ object has no attribute ‘load_state_dict’
I want to know what is the cause of the error, thank you!
And now it prompts a new error:
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x80 in position 0: invalid start byte
What is the reason for this problem, I am a beginner in deep learning, thank you for your reply!
Thank you, exactly as you said.
It’s a coincidence, I see that your business card is from Nvidia. My purpose of converting to onnx is to optimize the inference speed of the model based on onnx->TensorRT