seglink
seglink copied to clipboard
Meet a question.
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
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
Thank you for your help~ @dengdan I ignored the argument "border_width = -1" early.