mlcommons / GaNDLF

A generalizable application framework for segmentation, regression, and classification using PyTorch
https://gandlf.org
Apache License 2.0
158 stars 79 forks source link

Update preprocess.py #909

Closed szmazurek closed 2 months ago

szmazurek commented 2 months ago

This is in the reference to the nice Python "suprise" that is mentioned in TODO - when we want to have boolean flag in argparse args, we should use store_true or store_false action flag as in other cases indeed all input strings will be evaluated to true

Fixes #ISSUE_NUMBER

Proposed Changes

Checklist

github-actions[bot] commented 2 months ago

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅