MCPcopy Create free account
hub / github.com/MaverickPeter/vDiSCO / create_weights_folder

Function create_weights_folder

tools/trainer.py:321–329  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

319
320
321def create_weights_folder():
322 # Create a folder to save weights of trained models
323 this_file_path = pathlib.Path(__file__).parent.absolute()
324 temp, _ = os.path.split(this_file_path)
325 weights_path = os.path.join(temp, 'weights')
326 if not os.path.exists(weights_path):
327 os.mkdir(weights_path)
328 assert os.path.exists(weights_path), 'Cannot create weights folder: {}'.format(weights_path)
329 return weights_path

Callers 1

do_trainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected