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

Method __init__

core/utils/flow_transforms.py:71–80  ·  view source on GitHub ↗
(self, crop, scale=None, rot=None, trans=None, squeeze=None, schedule_coeff=1, order=1, black=False)

Source from the content-addressed store, hash-verified

69
70class SpatialAug(object):
71 def __init__(self, crop, scale=None, rot=None, trans=None, squeeze=None, schedule_coeff=1, order=1, black=False):
72 self.crop = crop
73 self.scale = scale
74 self.rot = rot
75 self.trans = trans
76 self.squeeze = squeeze
77 self.t = np.zeros(6)
78 self.schedule_coeff = schedule_coeff
79 self.order = order
80 self.black = black
81
82 def to_identity(self):
83 self.t[0] = 1; self.t[2] = 0; self.t[4] = 0; self.t[1] = 0; self.t[3] = 1; self.t[5] = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected