openvinotoolkit / datumaro

Dataset Management Framework, a Python library and a CLI tool to build, analyze and manage Computer Vision datasets.
https://openvinotoolkit.github.io/datumaro/
MIT License
551 stars 135 forks source link

Improve PIL and COLOR_BGR context image decode performance #1501

Closed vinnamkim closed 6 months ago

vinnamkim commented 6 months ago

Summary

How to test

before after
image image
00:51<00:00, 361.65it/s 00:19<00:00, 859.39it/s

Checklist

License

# Copyright (C) 2024 Intel Corporation
#
# SPDX-License-Identifier: MIT
codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Please upload report for BASE (releases/1.7.0@4394c6a). Learn more about missing BASE report.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## releases/1.7.0 #1501 +/- ## ================================================= Coverage ? 80.78% ================================================= Files ? 276 Lines ? 31485 Branches ? 6345 ================================================= Hits ? 25435 Misses ? 4639 Partials ? 1411 ``` | [Flag](https://app.codecov.io/gh/openvinotoolkit/datumaro/pull/1501/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openvinotoolkit) | Coverage Δ | | |---|---|---| | [ubuntu-20.04_Python-3.10](https://app.codecov.io/gh/openvinotoolkit/datumaro/pull/1501/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openvinotoolkit) | `80.77% <100.00%> (?)` | | | [windows-2022_Python-3.10](https://app.codecov.io/gh/openvinotoolkit/datumaro/pull/1501/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openvinotoolkit) | `80.75% <100.00%> (?)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openvinotoolkit#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

vinnamkim commented 6 months ago

Rebased and targeted to releases/1.7.0