(mask, label = 1)
| 430 | return point_label, indices[np.random.randint(len(indices))] |
| 431 | |
| 432 | def agree_click(mask, label = 1): |
| 433 | # max agreement position |
| 434 | indices = np.argwhere(mask == label) |
| 435 | if len(indices) == 0: |
| 436 | label = 1 - label |
| 437 | indices = np.argwhere(mask == label) |
| 438 | return label, indices[np.random.randint(len(indices))] |
| 439 | |
| 440 | |
| 441 | def random_box(multi_rater): |
nothing calls this directly
no outgoing calls
no test coverage detected