Returns a multilabel segmentation for the given batch of (RGB [-1...1]) images. Each pixel of the result is a torch.long indicating a predicted class number. Multiple classes can be predicted for the same pixel: output shape is (n, multipred, y, x), where m
(self, tensor_images, downsample=1)
| 21 | raise NotImplemented() |
| 22 | |
| 23 | def segment_batch(self, tensor_images, downsample=1): |
| 24 | ''' |
| 25 | Returns a multilabel segmentation for the given batch of (RGB [-1...1]) |
| 26 | images. Each pixel of the result is a torch.long indicating a |
| 27 | predicted class number. Multiple classes can be predicted for |
| 28 | the same pixel: output shape is (n, multipred, y, x), where |
| 29 | multipred is 3, 5, or 6, for how many different predicted labels can |
| 30 | be given for each pixel (depending on whether subdivision is being |
| 31 | used). If downsample is specified, then the output y and x dimensions |
| 32 | are downsampled from the original image. |
| 33 | ''' |
| 34 | raise NotImplemented() |
| 35 | |
| 36 | def predict_single_class(self, tensor_images, classnum, downsample=1): |
| 37 | ''' |
no outgoing calls
no test coverage detected