MCPcopy Create free account
hub / github.com/VCIP-RGBD/DFormer / canonicalize

Function canonicalize

utils/transforms.py:82–84  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

80 d = multiple
81
82 def canonicalize(s):
83 v = s // d
84 return (v + (v * d != s)) * d
85
86 th, tw = map(canonicalize, (h, w))
87

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected