| 14 | |
| 15 | |
| 16 | class DeNormalize(object): |
| 17 | def __init__(self, mean, std): |
| 18 | self.mean = mean |
| 19 | self.std = std |
| 20 | |
| 21 | def __call__(self, tensor): |
| 22 | for t, m, s in zip(tensor, self.mean, self.std): |
| 23 | t.mul_(s).add_(m) |
| 24 | return tensor |
| 25 | |
| 26 | |
| 27 | class MaskToTensor(object): |
nothing calls this directly
no outgoing calls
no test coverage detected