MCPcopy Create free account
hub / github.com/DragonisCV/RAM / analyze

Method analyze

scripts/random_analysis.py:14–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12 self.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
13
14 def analyze(self):
15 name_list = [hook.name for hook in self.hook_list]
16 np.random.shuffle(name_list)
17
18 save_folder = f"options/cond/{self.opt['name']}"
19 os.makedirs(save_folder, exist_ok=True)
20 np.savetxt(os.path.join(save_folder, 'filter_name.txt'), name_list, delimiter=',', fmt='%s')
21
22def main():
23 root_path = osp.abspath(osp.join(__file__, osp.pardir, osp.pardir))

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected