MCPcopy Create free account
hub / github.com/OpenTalker/StyleHEAT / transform_semantic

Function transform_semantic

inference.py:154–157  ·  view source on GitHub ↗
(semantic, frame_index)

Source from the content-addressed store, hash-verified

152 return seq
153
154 def transform_semantic(semantic, frame_index):
155 index = obtain_seq_index(frame_index, semantic.shape[0])
156 coeff_3dmm = semantic[index, ...]
157 return torch.Tensor(coeff_3dmm).permute(1, 0)
158
159 audio_coeff_list = []
160 for _i in range(len(audio_coeff)):

Callers 1

audio_reenactmentFunction · 0.85

Calls 1

obtain_seq_indexFunction · 0.85

Tested by

no test coverage detected