(h, w)
| 40 | |
| 41 | |
| 42 | def get_regular_bitmask_instances(h, w): |
| 43 | inst = Instances((h, w)) |
| 44 | inst.gt_boxes = Boxes(torch.rand(3, 4)) |
| 45 | inst.gt_boxes.tensor[:, 2:] += inst.gt_boxes.tensor[:, :2] |
| 46 | inst.gt_classes = torch.tensor([3, 4, 5]).to(dtype=torch.int64) |
| 47 | inst.gt_masks = BitMasks((torch.rand(3, h, w) > 0.5)) |
| 48 | return inst |
| 49 | |
| 50 | |
| 51 | class ModelE2ETest: |
no test coverage detected