(input_dict)
| 1073 | return omaps |
| 1074 | |
| 1075 | def convert2tensor(input_dict): |
| 1076 | rt_dict = {} |
| 1077 | for key, value in input_dict.items(): |
| 1078 | if 'rgb' in key or 'color' in key: |
| 1079 | rt_dict[key] = torch.FloatTensor(value).permute(2, 0, 1)[None, ...] |
| 1080 | else: |
| 1081 | rt_dict[key] = torch.FloatTensor(value)[None, None, ...] |
| 1082 | |
| 1083 | return rt_dict |
no outgoing calls
no test coverage detected