(self)
| 219 | labels (Tensor): the class labels for each bbox |
| 220 | """ |
| 221 | def __init__(self): |
| 222 | self.sample_options = ( |
| 223 | # using entire original input image |
| 224 | None, |
| 225 | # sample a patch s.t. MIN jaccard w/ obj in .1,.3,.4,.7,.9 |
| 226 | (0.1, None), |
| 227 | (0.3, None), |
| 228 | (0.7, None), |
| 229 | (0.9, None), |
| 230 | # randomly sample a patch |
| 231 | (None, None), |
| 232 | ) |
| 233 | |
| 234 | def __call__(self, image, boxes=None, labels=None): |
| 235 | height, width, _ = image.shape |
nothing calls this directly
no outgoing calls
no test coverage detected