The official Roboflow Python package. Manage your datasets, models, and deployments. Roboflow has everything you need to build a computer vision application.
Two dictionaries were added to speed up the search for images and annotations rather than iterating through a list to find matches.
Along with that a tqdm loading bar was added to the image loop to give users feedback during the parsing of their annotation/image folder.
List any dependencies that are required for this change.
Type of change
Please delete options that are not relevant.
[X] Bug fix (non-breaking change which fixes an issue)
How has this change been tested, please provide a testcase or example of how you tested the change?
All existing tests under tests/util/test_folderparser.py are passing after this work.
An inital stub test below was implemented to test speed improvements on the CocoNut Datset.
if you have the coconut dataset, it can be passed to the dev container with the following docker-compose.yml
Description
Fixes roboflow-bugtracker#908
Two dictionaries were added to speed up the search for images and annotations rather than iterating through a list to find matches.
Along with that a tqdm loading bar was added to the image loop to give users feedback during the parsing of their annotation/image folder.
List any dependencies that are required for this change.
Type of change
Please delete options that are not relevant.
How has this change been tested, please provide a testcase or example of how you tested the change?
All existing tests under
tests/util/test_folderparser.py
are passing after this work. An inital stub test below was implemented to test speed improvements on the CocoNut Datset.if you have the coconut dataset, it can be passed to the dev container with the following docker-compose.yml
Before this PR:![slow_upload](https://github.com/roboflow/roboflow-python/assets/33797354/0da011cb-a495-49d8-917f-796b8d6b107b)
After this PR:![optimized_upload](https://github.com/roboflow/roboflow-python/assets/33797354/8e41037d-552e-48fa-a240-fff932be9025)