seglink icon indicating copy to clipboard operation
seglink copied to clipboard

Meet a question.

Open Polaris-SDU opened this issue 7 years ago • 2 comments
trafficstars

Hello, I have benefited greatly from this open source project. Thank you for this elegant code, but I am puzzled by the following code.

"points_in_bbox_mask = points_in_bbox_mask.intersection(config.default_anchor_center_set)" ( in ~/seglink/tf_extended/seglink.py)

According the upper code, I think we can only find default box/anchor which center is in the edge of the word bounding box not inside the word bounding box.
But a default box is labeled as positive iff (1) the center of the box is inside the word bounding box according the paper. Could you help me solve the problem. Thank you in advance~@dengdan

Polaris-SDU avatar Sep 26 '18 07:09 Polaris-SDU

The border_width = -1 means filling the bbox with color = bbox_idx values, instead of drawing empty bboxes on the mask. https://github.com/dengdan/seglink/blob/cc36732d78a637ac10587c11befe19944ec1c1ea/tf_extended/seglink.py#L294

dengdan avatar Sep 26 '18 07:09 dengdan

Thank you for your help~ @dengdan I ignored the argument "border_width = -1" early.

Polaris-SDU avatar Sep 26 '18 08:09 Polaris-SDU