v7labs / darwin-py

Library and commandline tool for managing datasets on darwin.v7labs.com
MIT License
115 stars 40 forks source link

[DAR-2110][External] Fixed multiprocessing annotation parsing issue with console #875

Closed JBWilkie closed 3 weeks ago

JBWilkie commented 3 weeks ago

Problem

When using importer.import_annotations, if the use_multi_cpu flag is set to True, no annotation files can be read

Solution

The problem appears to be that the multi-processed parsing attempts to use a different progress bar to display progress. If we make it use the same progress bar (tqdm) as the single CPU case, the issue is resolved

Changelog

Resolved bug with multi-processed annotation parsing

linear[bot] commented 3 weeks ago

DAR-2110 BUG: The darwin-py importer cannot find any files when use_multi_cpu is set to True