Problem
The definition of the flag use_ema wrongly includes a default value of True:
|
parser.add_argument( |
|
"--use_ema", |
|
action="store_true", |
|
default=True, |
|
help="Whether to use Exponential Moving Average for the final model weights.", |
|
) |
Hence, when the flag is not passed via CLI,
it is still evaluated as true.
Fix
To fix this bug, simply remove default=True from the flag definition.