Bug in det_base_postprocess.py
HaoyangLee opened this issue · comments
HaoyangLI commented
-
Problem
Inmindocr/postprocess/det_base_postprocess.py
, according to the type hint,pred
could be a Tuple of tensor,
which incur bug in
-
Potential solution:
Assertshape_list.shape[0]
equals to each tensor.shape[0] in pred Tuple. The shape ofshape_list
is supposed to be [N, 4]. The shape ofpred
or of each tensor inpred
is supposed to be [N, ...]