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

Function copy_source

utils/file_utils.py:23–24  ·  view source on GitHub ↗
(file, output_dir)

Source from the content-addressed store, hash-verified

21 torch.cuda.set_device(opt.gpu)
22
23def copy_source(file, output_dir):
24 copyfile(file, os.path.join(output_dir, os.path.basename(file)))
25
26
27

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68