fix: 馃悰 fix bug when training object detection by aminemindee 路 Pull Request #1254 路 mindee/doctr (original) (raw)

@aminemindee

@aminemindee

@codecov

Codecov Report

Merging #1254 (8d42ae2) into main (021d4f5) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@ Coverage Diff @@ ## main #1254 +/- ##

Flag Coverage 螖
unittests 95.66% <100.00%> (+0.02%) 猬嗭笍

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage 螖
doctr/datasets/datasets/base.py 91.22% <100.00%> (酶)

... and 1 file with indirect coverage changes

@felixdittrich92

Thanks for the PR @aminemindee :)
Can we maybe add a short comment above the condition that it's only the case for a detection KIE dataset ?

BTW: file_utils.py seems not the right place for copy_tensor can we move it to https://github.com/mindee/doctr/tree/main/doctr/models/utils and add a short test ? (Because it's small but uncovered currently)

odulcy-mindee

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As @felixdittrich92 said, just add a comment and we can merge.

We'll move copy_tensor function in another PR

@aminemindee

odulcy-mindee

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})