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

Method pad

core/utils/utils.py:20–21  ·  view source on GitHub ↗
(self, *inputs)

Source from the content-addressed store, hash-verified

18 self._pad = [pad_wd//2, pad_wd - pad_wd//2, 0, pad_ht]
19
20 def pad(self, *inputs):
21 return [F.pad(x, self._pad, mode='replicate') for x in inputs]
22
23 def unpad(self,x):
24 ht, wd = x.shape[-2:]

Callers 13

validate_sintelFunction · 0.95
create_sintel_submissionFunction · 0.95
validate_kittiFunction · 0.95
compute_flowFunction · 0.95
spatial_transformMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected