comparison image_learner_cli.py @ 6:09904b1f61f5 draft default tip

planemo upload for repository https://github.com/goeckslab/gleam.git commit 8499c8d758e3ef28a65a62f59bb403edc4935413
author goeckslab
date Mon, 14 Jul 2025 14:47:32 +0000
parents 186424a7eca7
children
comparison
equal deleted inserted replaced
5:d2d9a931addf 6:09904b1f61f5
1238 "random_contrast": {"type": "random_contrast", "min": 0.5, "max": 2.0}, 1238 "random_contrast": {"type": "random_contrast", "min": 0.5, "max": 2.0},
1239 } 1239 }
1240 aug_list = [] 1240 aug_list = []
1241 for tok in aug_string.split(","): 1241 for tok in aug_string.split(","):
1242 key = tok.strip() 1242 key = tok.strip()
1243 if not key:
1244 continue
1243 if key not in mapping: 1245 if key not in mapping:
1244 valid = ", ".join(mapping.keys()) 1246 valid = ", ".join(mapping.keys())
1245 raise ValueError(f"Unknown augmentation '{key}'. Valid choices: {valid}") 1247 raise ValueError(f"Unknown augmentation '{key}'. Valid choices: {valid}")
1246 aug_list.append(mapping[key]) 1248 aug_list.append(mapping[key])
1247 return aug_list 1249 return aug_list