Skip to content

Commit adb3830

Browse files
committed
fix bug in dataProvider with _batch_postprocessors
1 parent 0149976 commit adb3830

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mltu/dataProvider.py

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

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

0 commit comments

Comments
 (0)