Skip to content

Fix evaluation of args.convert_to_tflite in train.py#308

Open
gtjoseph wants to merge 1 commit intodscripka:mainfrom
gtjoseph:main-fix-convert-arg
Open

Fix evaluation of args.convert_to_tflite in train.py#308
gtjoseph wants to merge 1 commit intodscripka:mainfrom
gtjoseph:main-fix-convert-arg

Conversation

@gtjoseph
Copy link

@gtjoseph gtjoseph commented Jan 8, 2026

The boolean command line arguments are all stored as strings so
if args.convert_to_tflite: always evaluates to True.
This has been changed to if args.convert_to_tflite is True:
to match the handling of the other command line arguments.

Resolves: #305

The boolean command line arguments are all stored as strings so
`if args.convert_to_tflite:` always evaluates to True.
This has been changed to `if args.convert_to_tflite is True:`
to match the handling of the other command line arguments.

Resolves: dscripka#305
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In train.py, convert_to_tflite is always attempted after training even when it's not specified on the command line

1 participant