MCPcopy Create free account
hub / github.com/MotrixLab/insactor / __getitem__

Method __getitem__

diffmimic/utils/data.py:148–152  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

146 return len(self.motion_path_list)
147
148 def __getitem__(self, idx):
149 fpath, fname = self.motion_path_list[idx], self.motion_list[idx]
150 demo_traj = np.array(np.load(fpath))
151
152 return demo_traj, fname
153
154
155class InfiniteSampler(data.sampler.Sampler):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected