MCPcopy Create free account
hub / github.com/drinkingcoder/FlowFormer-Official / __call__

Method __call__

core/utils/flow_transforms.py:244–247  ·  view source on GitHub ↗
(self, inputs, target)

Source from the content-addressed store, hash-verified

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
250class PCAAug(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected