Skip to content

Commit 15e93a0

Browse files
committed
fix DataProvider with batch_postprocessors
1 parent 654ce9b commit 15e93a0

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [1.0.15] - 2022-07-15
2+
### Changed
3+
- Fixed bug in `mltu.dataProvider.DataProvider` to work with `batch_postprocessors`.
4+
5+
16
## [1.0.14] - 2022-07-13
27
### Changed
38
- Included `augment_annotation` bool option to all `mltu.augmentors` to be able to choose whether to augment annotation or not

mltu/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.0.14"
1+
__version__ = "1.0.15"
22

33
from .annotations.images import Image
44
from .annotations.images import CVImage

mltu/dataProvider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def __getitem__(self, index: int):
265265
batch_data.append(data)
266266
batch_annotations.append(annotation)
267267

268-
if self._batch_postprocessors is not None:
268+
if self._batch_postprocessors:
269269
for batch_postprocessor in self._batch_postprocessors:
270270
batch_data, batch_annotations = batch_postprocessor(batch_data, batch_annotations)
271271

0 commit comments

Comments
 (0)