(h, w)
| 32 | |
| 33 | |
| 34 | def get_empty_instance(h, w): |
| 35 | inst = Instances((h, w)) |
| 36 | inst.gt_boxes = Boxes(torch.rand(0, 4)) |
| 37 | inst.gt_classes = torch.tensor([]).to(dtype=torch.int64) |
| 38 | inst.gt_masks = BitMasks(torch.rand(0, h, w)) |
| 39 | return inst |
| 40 | |
| 41 | |
| 42 | def get_regular_bitmask_instances(h, w): |
no test coverage detected