Skip to content

Commit

Permalink
Revert "hotfix(example): workaround pfp bbox type issue (#2230)"
Browse files Browse the repository at this point in the history
This reverts commit 9569686.
  • Loading branch information
jialeicui committed May 15, 2023
1 parent 0dd0978 commit 0189421
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions example/PennFudanPed/pfp/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ def make_coco_evaluator(ann_list, iou_types) -> CocoEvaluator:
"image_id": _a.image_id,
"category_id": _a.category_id,
"area": _a.area,
# FIXME: (workaround) convert tuple to list.
# in the server side, the bbox is changed to tuple type, but in the client side, it is list type.
"bbox": list(_a.bbox) if isinstance(_a.bbox, tuple) else _a.bbox,
"bbox": _a.bbox,
"iscrowd": _a.iscrowd,
"segmentation": _a.segmentation,
}
Expand Down

0 comments on commit 0189421

Please sign in to comment.