MCPcopy
hub / github.com/NVlabs/SPADE / option_file_path

Method option_file_path

options/base_options.py:115–120  ·  view source on GitHub ↗
(self, opt, makedir=False)

Source from the content-addressed store, hash-verified

113 print(message)
114
115 def option_file_path(self, opt, makedir=False):
116 expr_dir = os.path.join(opt.checkpoints_dir, opt.name)
117 if makedir:
118 util.mkdirs(expr_dir)
119 file_name = os.path.join(expr_dir, 'opt')
120 return file_name
121
122 def save_options(self, opt):
123 file_name = self.option_file_path(opt, makedir=True)

Callers 2

save_optionsMethod · 0.95
load_optionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected