MCPcopy
hub / github.com/OpenMotionLab/MotionGPT / mm_mode

Method mm_mode

mGPT/data/Kit.py:77–88  ·  view source on GitHub ↗
(self, mm_on=True)

Source from the content-addressed store, hash-verified

75 return features
76
77 def mm_mode(self, mm_on=True):
78 # random select samples for mm
79 if mm_on:
80 self.is_mm = True
81 self.name_list = self.test_dataset.name_list
82 self.mm_list = np.random.choice(self.name_list,
83 self.cfg.METRIC.MM_NUM_SAMPLES,
84 replace=False)
85 self.test_dataset.name_list = self.mm_list
86 else:
87 self.is_mm = False
88 self.test_dataset.name_list = self.name_list

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by 1

mainFunction · 0.36