MCPcopy Create free account
hub / github.com/NVlabs/RADIO / transform

Method transform

examples/common/resize_transform.py:108–112  ·  view source on GitHub ↗
(self, inpt: Any, params: Dict[str, Any])

Source from the content-addressed store, hash-verified

106 return dict(size=(left, top, right, bottom))
107
108 def transform(self, inpt: Any, params: Dict[str, Any]) -> Any:
109 size = params['size']
110
111 ret = transforms.functional.pad(inpt, size, fill=self.pad_mean)
112 return ret
113
114
115class PadToSize(TV2Compat):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected