comparison COBRAxy/custom_data_generator.py @ 350:6f1065c00211 draft

Uploaded
author francesco_lapi
date Thu, 04 Sep 2025 22:49:01 +0000
parents 25862d166f88
children ffb2cfe8ec2e
comparison
equal deleted inserted replaced
349:39993b9d5ec8 350:6f1065c00211
201 201
202 # this is the worst thing I've seen so far, congrats to the former MaREA devs for suggesting this! 202 # this is the worst thing I've seen so far, congrats to the former MaREA devs for suggesting this!
203 if os.path.isdir(ARGS.output_path) == False: 203 if os.path.isdir(ARGS.output_path) == False:
204 os.makedirs(ARGS.output_path) 204 os.makedirs(ARGS.output_path)
205 205
206 if ARGS.input != "None": 206 if ARGS.input:
207 # load custom model 207 # load custom model
208 model = load_custom_model( 208 model = load_custom_model(
209 utils.FilePath.fromStrPath(ARGS.input), utils.FilePath.fromStrPath(ARGS.name).ext) 209 utils.FilePath.fromStrPath(ARGS.input), utils.FilePath.fromStrPath(ARGS.name).ext)
210 else: 210 else:
211 # load built-in model 211 # load built-in model