FIRST-Tech-Challenge / fmltc

FIRST Machine Learning Toolchain
Other
38 stars 14 forks source link

Convert images from TF evaluation to compressed jpegs #298

Closed lizlooney closed 1 year ago

lizlooney commented 1 year ago

In cf_dataset_producer.py: Added a comment explaining why we convert the frame_data_image using PIL.Image. Removed special code for jpg format since we use png for the dataset.

In cf_model_trainer.py: Added code to convert the image we get back from TensorFlow evaluation to JPEG with lower quality. The JPEG images are about 25% of the size of the ones from TensorFlow.

lizlooney commented 1 year ago

Oops, I made the PR from my fork. I'll make a new PR after I push this branch to upstream.