Closed JDYG closed 1 year ago
Thanks for pointing out, and sorry for my mistake.
I have modified psee_evaluator.py
so that it drops 'invalid' field.
(Actually, we don't need to set the field for the testing dataset in the first place, but I mistakenly added validate_bbox.py
in prepair.sh
.)
Hi, When I execute the evaluation code
psee_evaluator.py
, I notice that it will reformat the ground truth box first. In your original code for preparing the training/test dataset, you add a dtype (invalid
) for the gt boxes, which doesn't exist in the original Gen1 dataset.Therefore, when executing the
psee_evaluator.py
and calling thereformat_boxes(boxes)
for the gt_boxes_list, it will trigger the errorValueError: no field of name invalid
fornew[name] = boxes[name]
.Because the
boxes.dtype.names
for gt_boxes is('t', 'x', 'y', 'w', 'h', 'class_id', 'confidence', 'track_id', 'invalid')
and thedtype.names
for the initiatednew
is('t', 'x', 'y', 'w', 'h', 'class_id', 'track_id', 'class_confidence')
, which is defined in the line 21 in thebox_loading.py
.I guess I should modify the original
box_loading.py
for the HMNet. I modify it as following, and it now can run successfully.