MCPcopy
hub / github.com/princeton-vl/RAFT / pad

Method pad

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

Source from the content-addressed store, hash-verified

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

Callers 5

create_sintel_submissionFunction · 0.95
create_kitti_submissionFunction · 0.95
validate_sintelFunction · 0.95
validate_kittiFunction · 0.95
demoFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected