Traceback (most recent call last):


 "tools/pytorch2onnx.py", line 186, in <module>

verify=args.verify)


 "tools/pytorch2onnx.py", line 96, in pytorch2onnx

opset_version=opset_version)


 "/home/SENSETIME/liuhengyan/anaconda3/envs/pytorch1.6/lib/python3.7/site-packages/torch/onnx/__init__.py", line 208, in export

custom_opsets, enable_onnx_checker, use_external_data_format)


 "/home/SENSETIME/liuhengyan/anaconda3/envs/pytorch1.6/lib/python3.7/site-packages/torch/onnx/utils.py", line 92, in export

use_external_data_format=use_external_data_format)


 "/home/SENSETIME/liuhengyan/anaconda3/envs/pytorch1.6/lib/python3.7/site-packages/torch/onnx/utils.py", line 530, in _export

fixed_batch_size=fixed_batch_size)


 "/home/SENSETIME/liuhengyan/anaconda3/envs/pytorch1.6/lib/python3.7/site-packages/torch/onnx/utils.py", line 366, in _model_to_graph

graph, torch_out = _trace_and_get_graph_from_model(model, args)


 "/home/SENSETIME/liuhengyan/anaconda3/envs/pytorch1.6/lib/python3.7/site-packages/torch/onnx/utils.py", line 319, in _trace_and_get_graph_from_model

torch.jit._get_trace_graph(model, args, strict=False, _force_outplace=False, _return_inputs_states=True)


 "/home/SENSETIME/liuhengyan/anaconda3/envs/pytorch1.6/lib/python3.7/site-packages/torch/jit/__init__.py", line 338, in _get_trace_graph

outs = ONNXTracedModule(f, strict, _force_outplace, return_inputs, _return_inputs_states)(*args, **kwargs)


 "/home/SENSETIME/liuhengyan/anaconda3/envs/pytorch1.6/lib/python3.7/site-packages/torch/nn/modules/module.py", line 722, in _call_impl

result = self.forward(*input, **kwargs)


 "/home/SENSETIME/liuhengyan/anaconda3/envs/pytorch1.6/lib/python3.7/site-packages/torch/jit/__init__.py", line 426, in forward

self._force_outplace,


 "/home/SENSETIME/liuhengyan/anaconda3/envs/pytorch1.6/lib/python3.7/site-packages/torch/jit/__init__.py", line 412, in wrapper

outs.append(self.inner(*trace_inputs))


 "/home/SENSETIME/liuhengyan/anaconda3/envs/pytorch1.6/lib/python3.7/site-packages/torch/nn/modules/module.py", line 720, in _call_impl

result = self._slow_forward(*input, **kwargs)


 "/home/SENSETIME/liuhengyan/anaconda3/envs/pytorch1.6/lib/python3.7/site-packages/torch/nn/modules/module.py", line 704, in _slow_forward

result = self.forward(*input, **kwargs)


 "/home/SENSETIME/liuhengyan/mmclassification/mmcls/models/classifiers/base.py", line 85, in forward

return self.forward_test(img, **kwargs)


 "/home/SENSETIME/liuhengyan/mmclassification/mmcls/models/classifiers/base.py", line 69, in forward_test

return self.simple_test(imgs[0], **kwargs)
TypeError: simple_test() missing 1 required positional argument: 'img_metas'

Traceback (most recent call last):


 "<string>", line 1, in <module>


 "/tmp/pip-req-build-f1vgc77y/setup.py", line 35, in <module>

_, bare_metal_major, _ = get_cuda_bare_metal_version(cpp_extension.CUDA_HOME)


 "/tmp/pip-req-build-f1vgc77y/setup.py", line 14, in get_cuda_bare_metal_version

raw_output = subprocess.check_output([cuda_dir + "/bin/nvcc", "-V"], universal_newlines=True)

TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
```
