(x, with_score=True)
| 62 | |
| 63 | |
| 64 | def valid_boundary(x, with_score=True): |
| 65 | num = len(x) |
| 66 | if num < 8: |
| 67 | return False |
| 68 | if num % 2 == 0 and (not with_score): |
| 69 | return True |
| 70 | if num % 2 == 1 and with_score: |
| 71 | return True |
| 72 | |
| 73 | return False |
| 74 | |
| 75 | |
| 76 | def boundary_iou(src, target): |