(self, target_height, target_width)
| 209 | Utility for scaling segmentations, using nearest-neighbor zooming. |
| 210 | ''' |
| 211 | def __init__(self, target_height, target_width): |
| 212 | self.target_height = target_height |
| 213 | self.target_width = target_width |
| 214 | def __call__(self, seg): |
| 215 | ratio = (1, self.target_height / float(seg.shape[1]), |
| 216 | self.target_width / float(seg.shape[2])) |
nothing calls this directly
no outgoing calls
no test coverage detected