(self)
| 36 | |
| 37 | @property |
| 38 | def dummy_mask(self): |
| 39 | batch_size = 1 |
| 40 | num_channels = 1 |
| 41 | height = 8 |
| 42 | width = 8 |
| 43 | |
| 44 | sample = torch.rand((batch_size, num_channels, height, width)) |
| 45 | |
| 46 | return sample |
| 47 | |
| 48 | def to_np(self, image): |
| 49 | if isinstance(image[0], PIL.Image.Image): |
nothing calls this directly
no outgoing calls
no test coverage detected