MCPcopy Create free account
hub / github.com/RylonW/DocNLC / transform

Function transform

data/multitask_dataset.py:121–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119
120
121def transform():
122 return Compose([
123 ToTensor(),
124 ])
125
126def BGR2RGB_toTensor(back, blur, noise, shadow, watermark, target):
127 back = back[:, :, [2, 1, 0]]

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected