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

Method pad

evaluate_FlowFormer_tile.py:49–50  ·  view source on GitHub ↗
(self, *inputs)

Source from the content-addressed store, hash-verified

47 self._pad = [pad_wd//2, pad_wd - pad_wd//2, 0, pad_ht]
48
49 def pad(self, *inputs):
50 return [F.pad(x, self._pad, mode='constant', value=0.0) for x in inputs]
51
52 def unpad(self,x):
53 ht, wd = x.shape[-2:]

Callers 4

create_kitti_submissionFunction · 0.95
validate_kittiFunction · 0.95
create_sintel_submissionFunction · 0.45
validate_sintelFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected