MCPcopy Create free account
hub / github.com/Zhiyuan-R/Tiger-Diffusion / get_output_dir

Function get_output_dir

utils/file_utils.py:46–51  ·  view source on GitHub ↗
(prefix, exp_id)

Source from the content-addressed store, hash-verified

44
45
46def get_output_dir(prefix, exp_id):
47 t = datetime.datetime.now().strftime('%Y-%m-%d-%H-%M-%S')
48 output_dir = os.path.join(prefix, 'output/' + exp_id, t)
49 if not os.path.exists(output_dir):
50 os.makedirs(output_dir)
51 return output_dir
52
53
54

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68