(h, w)
| 56 | |
| 57 | |
| 58 | def get_empty_instance(h, w): |
| 59 | inst = Instances((h, w)) |
| 60 | inst.gt_boxes = Boxes(torch.rand(0, 4)) |
| 61 | inst.gt_classes = torch.tensor([]).to(dtype=torch.int64) |
| 62 | inst.gt_masks = BitMasks(torch.rand(0, h, w)) |
| 63 | return inst |
| 64 | |
| 65 | |
| 66 | def get_regular_bitmask_instances(h, w): |
no test coverage detected