FIRST-Tech-Challenge / fmltc

FIRST Machine Learning Toolchain
Other
38 stars 14 forks source link

produce_dataset fails if video has exactly 1 included frame #251

Closed lizlooney closed 2 years ago

lizlooney commented 2 years ago

See https://community.ftclive.org/t/problem-creating-dataset-prior-to-training/139/2

traceback: Traceback (most recent call last): File "/workspace/action.py", line 179, in __perform_action ... action_fn(action_parameters) File "/workspace/dataset_producer.py", line 105, in produce_dataset ... split = split_for_records(video_frame_entities, eval_percent) File "/workspace/dataset_producer.py", line 182, in split_for_records ... raise exceptions.HttpErrorUnprocessableEntity(message) ... exceptions.HttpErrorUnprocessableEntity ...