MCPcopy Create free account
hub / github.com/MotrixLab/FineMoGen / get_kit_slice

Function get_kit_slice

mogen/models/transformers/finemogen.py:12–30  ·  view source on GitHub ↗
(idx)

Source from the content-addressed store, hash-verified

10
11
12def get_kit_slice(idx):
13 if idx == 0:
14 result = [0, 1, 2, 3, 184, 185, 186, 247, 248, 249, 250]
15 else:
16 result = [
17 4 + (idx - 1) * 3,
18 4 + (idx - 1) * 3 + 1,
19 4 + (idx - 1) * 3 + 2,
20 64 + (idx - 1) * 6,
21 64 + (idx - 1) * 6 + 1,
22 64 + (idx - 1) * 6 + 2,
23 64 + (idx - 1) * 6 + 3,
24 64 + (idx - 1) * 6 + 4,
25 64 + (idx - 1) * 6 + 5,
26 184 + idx * 3,
27 184 + idx * 3 + 1,
28 184 + idx * 3 + 2,
29 ]
30 return result
31
32
33def get_t2m_slice(idx):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected