torch2trt icon indicating copy to clipboard operation
torch2trt copied to clipboard

TypeError: forward() missing 1 required positional argument: 'text'

Open YasinTURKMENOGLU opened this issue 2 years ago • 0 comments

Traceback (most recent call last): File "convert.py", line 52, in info(opt) File "convert.py", line 18, in info result = text_recogn.predict(opt,img_path) File "/home/kc/Desktop/torch2trt/lib/helpers2.py", line 99, in predict model_trt = torch2trt(model, [img], File "/home/kc/Desktop/torch2trt/torch2trt/torch2trt.py", line 619, in torch2trt outputs = module(*inputs) File "/home/kc/anaconda3/envs/text/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, **kwargs) File "/home/kc/anaconda3/envs/text/lib/python3.8/site-packages/torch/nn/parallel/data_parallel.py", line 166, in forward return self.module(*inputs[0], **kwargs[0]) File "/home/kc/anaconda3/envs/text/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, **kwargs) TypeError: forward() missing 1 required positional argument: 'text'

YasinTURKMENOGLU avatar Jun 29 '22 06:06 YasinTURKMENOGLU