(self, inputs, target)
| 242 | self.augcolor = torchvision.transforms.ColorJitter(brightness=0.4, contrast=0.4, saturation=0.5, hue=0.5/3.14) |
| 243 | |
| 244 | def __call__(self, inputs, target): |
| 245 | inputs[0] = np.asarray(self.augcolor(Image.fromarray(np.uint8(inputs[0]*255))))/255. |
| 246 | inputs[1] = np.asarray(self.augcolor(Image.fromarray(np.uint8(inputs[1]*255))))/255. |
| 247 | return inputs,target |
| 248 | |
| 249 | |
| 250 | class PCAAug(object): |
nothing calls this directly
no outgoing calls
no test coverage detected