Skip to content

Commit b268e03

Browse files
committed
Merge branch 'develop'
2 parents 5465413 + e4e258e commit b268e03

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
## [1.1.6] - 2022-10-30
1+
## [1.1.7] - 2022-10-30
2+
### Changed
3+
- Fixed bug in `mltu.torch.dataProvider.SequenceHandler`, to handle `len sequence < queue_size` case
4+
5+
# [1.1.6] - 2022-10-30
26
### Changed
37
- Fixed dependencies with `librosa` library
48

mltu/__init__.py

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

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

mltu/torch/dataProvider.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,11 @@ def __exit__(self):
257257
else:
258258
print("Something went wrong")
259259

260-
def __call__(self, index):
260+
def __call__(self, index: int):
261261
if index == 0:
262262
for _index in range(self.queue_size):
263+
if _index >= self.max_len:
264+
break
263265
self.data_queue.put(_index)
264266

265267
while True:

0 commit comments

Comments
 (0)