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

Function make_exp_dirs

ram/utils/misc.py:38–49  ·  view source on GitHub ↗

Make dirs for experiments.

(opt)

Source from the content-addressed store, hash-verified

36
37@master_only
38def make_exp_dirs(opt):
39 """Make dirs for experiments."""
40 path_opt = opt['path'].copy()
41 if opt['is_train']:
42 mkdir_and_rename(path_opt.pop('experiments_root'))
43 else:
44 mkdir_and_rename(path_opt.pop('results_root'))
45 for key, path in path_opt.items():
46 if ('strict_load' in key) or ('pretrain_network' in key) or ('resume' in key) or ('param_key' in key):
47 continue
48 else:
49 os.makedirs(path, exist_ok=True)
50
51
52def scandir(dir_path, suffix=None, recursive=False, full_path=False):

Callers 3

setup_environmentMethod · 0.90
train_pipelineFunction · 0.90
test_pipelineFunction · 0.90

Calls 1

mkdir_and_renameFunction · 0.85

Tested by 1

test_pipelineFunction · 0.72