Thanks for sharing this greak research!
I tried to run benchmark-like code and faced this error:
outputs = self.model(return_loss=False, rescale=True, **data)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/mmcv/parallel/data_parallel.py", line 51, in forward
return super().forward(*inputs, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/parallel/data_parallel.py", line 161, in forward
inputs, kwargs = self.scatter(inputs, kwargs, self.device_ids)
File "/usr/local/lib/python3.8/dist-packages/mmcv/parallel/data_parallel.py", line 55, in scatter
return scatter_kwargs(inputs, kwargs, device_ids, dim=self.dim)
File "/usr/local/lib/python3.8/dist-packages/mmcv/parallel/scatter_gather.py", line 61, in scatter_kwargs
kwargs = scatter(kwargs, target_gpus, dim) if kwargs else []
File "/usr/local/lib/python3.8/dist-packages/mmcv/parallel/scatter_gather.py", line 50, in scatter
return scatter_map(inputs)
File "/usr/local/lib/python3.8/dist-packages/mmcv/parallel/scatter_gather.py", line 40, in scatter_map
out = list(map(type(obj), zip(*map(scatter_map, obj.items()))))
File "/usr/local/lib/python3.8/dist-packages/mmcv/parallel/scatter_gather.py", line 35, in scatter_map
return list(zip(*map(scatter_map, obj)))
File "/usr/local/lib/python3.8/dist-packages/mmcv/parallel/scatter_gather.py", line 33, in scatter_map
return Scatter.forward(target_gpus, obj.data)
File "/usr/local/lib/python3.8/dist-packages/mmcv/parallel/_functions.py", line 71, in forward
input_device = get_input_device(input)
File "/usr/local/lib/python3.8/dist-packages/mmcv/parallel/_functions.py", line 57, in get_input_device
input_device = get_input_device(item)
File "/usr/local/lib/python3.8/dist-packages/mmcv/parallel/_functions.py", line 57, in get_input_device
input_device = get_input_device(item)
File "/usr/local/lib/python3.8/dist-packages/mmcv/parallel/_functions.py", line 64, in get_input_device
raise Exception(f'Unknown type {type(input)}.')
Exception: Unknown type <class 'dict'>.
Do you have an idea what could cause such an issue?
Thanks for sharing this greak research! I tried to run benchmark-like code and faced this error:
Do you have an idea what could cause such an issue?