mmdetection
mmdetection copied to clipboard
[Feature] utilize mmcv image backend
Currently LoadImageFromFile pipeline doesnt support loading mmcv image backends as pillow,tifffile...
but mmcv supports it.
This PR adds the support of using other mmcv image backends.
Codecov Report
Patch coverage is 100.00%
of modified lines.
Files Changed | Coverage |
---|---|
mmdet/datasets/pipelines/loading.py | 100.00% |
:loudspeaker: Thoughts on this report? Let us know!.
Hi @fcakyon , Thanks for your kind PR. We plan to merge this PR this month, do you have time to continue on this?
Hi @fcakyon , Thanks for your kind PR. We plan to merge this PR this month, do you have time to continue on this?
unfortunately i cannot fix the pre-commit error
Maybe you should also add some code in init function:
if self.image_backend is not None: mmcv.use_backend(self.image_backend)
if not, you can not use turbojpeg
as backend.
jpeg
However, now, using turbojpeg
as backend may have a potiential bug in distributing training and test as pointed in jpeg is None
@fcakyon Do you have any progress?