MCPcopy Create free account
hub / github.com/OpenImagingLab/4DSloMo / build_scaling_rotation_4d

Function build_scaling_rotation_4d

utils/general_utils.py:135–145  ·  view source on GitHub ↗
(s, l, r)

Source from the content-addressed store, hash-verified

133 return A
134
135def build_scaling_rotation_4d(s, l, r):
136 L = torch.zeros((s.shape[0], 4, 4), dtype=torch.float, device="cuda")
137 R = build_rotation_4d(l, r)
138
139 L[:,0,0] = s[:,0]
140 L[:,1,1] = s[:,1]
141 L[:,2,2] = s[:,2]
142 L[:,3,3] = s[:,3]
143
144 L = R @ L
145 return L
146
147def safe_state(silent):
148 old_f = sys.stdout

Callers 2

get_cov_tMethod · 0.90

Calls 1

build_rotation_4dFunction · 0.85

Tested by

no test coverage detected