vis4d.eval.utils¶
Utility functions for evaluation.
Functions
|
Check if the shape of prediction and target matches. |
|
Convert dense prediction and target to numpy arrays. |
- check_shape_match(prediction, target)[source]¶
Check if the shape of prediction and target matches.
- Return type:
None
- dense_inputs_to_numpy(prediction, target)[source]¶
Convert dense prediction and target to numpy arrays.
- Return type:
tuple
[Union
[ndarray
[Any
,dtype
[bool_
]],ndarray
[Any
,dtype
[float32
]],ndarray
[Any
,dtype
[float64
]],ndarray
[Any
,dtype
[int32
]],ndarray
[Any
,dtype
[int64
]],ndarray
[Any
,dtype
[uint8
]],ndarray
[Any
,dtype
[uint16
]],ndarray
[Any
,dtype
[uint32
]]],Union
[ndarray
[Any
,dtype
[bool_
]],ndarray
[Any
,dtype
[float32
]],ndarray
[Any
,dtype
[float64
]],ndarray
[Any
,dtype
[int32
]],ndarray
[Any
,dtype
[int64
]],ndarray
[Any
,dtype
[uint8
]],ndarray
[Any
,dtype
[uint16
]],ndarray
[Any
,dtype
[uint32
]]]]