Traceback (most recent call last):


 "det_on_tx2.py", line 41, in <module>

model.load_state_dict(torch.load(trt_model_fn))


 "/home/jario/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 824, in load_state_dict

load(self)


 "/home/jario/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 819, in load

state_dict, prefix, local_metadata, True, missing_keys, unexpected_keys, error_msgs)


 "/usr/local/lib/python2.7/dist-packages/torch2trt/torch2trt.py", line 308, in _load_from_state_dict

self.context = self.engine.create_execution_context()
AttributeError: 'NoneType' object has no attribute 'create_execution_context'

Traceback (most recent call last):


 "C:\Users\ethan\Desktop\test\test.py", line 29, in <module>

detect_text()


 "C:\Users\ethan\Desktop\test\test.py", line 10, in detect_text

client = vision.ImageAnnotatorClient("Test-023baa8d2e3a.json")


 "C:\Users\ethan\AppData\Local\Programs\Python\Python36\lib\site-packages\google\cloud\vision_v1\gapic\image_annotator_client.py", line 93, in __init__

image_annotator_pb2.ImageAnnotatorStub(channel))


 "C:\Users\ethan\AppData\Local\Programs\Python\Python36\lib\site-packages\google\cloud\vision_v1\proto\image_annotator_pb2.py", line 1989, in __init__

self.BatchAnnotateImages = channel.unary_unary(
AttributeError: 'str' object has no attribute 'unary_unary'