Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonlessons committed Oct 30, 2023
2 parents 5465413 + e4e258e commit b268e03
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
## [1.1.6] - 2022-10-30
## [1.1.7] - 2022-10-30
### Changed
- Fixed bug in `mltu.torch.dataProvider.SequenceHandler`, to handle `len sequence < queue_size` case

# [1.1.6] - 2022-10-30
### Changed
- Fixed dependencies with `librosa` library

Expand Down
2 changes: 1 addition & 1 deletion mltu/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.1.6"
__version__ = "1.1.7"

from .annotations.images import Image
from .annotations.images import CVImage
Expand Down
4 changes: 3 additions & 1 deletion mltu/torch/dataProvider.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,11 @@ def __exit__(self):
else:
print("Something went wrong")

def __call__(self, index):
def __call__(self, index: int):
if index == 0:
for _index in range(self.queue_size):
if _index >= self.max_len:
break
self.data_queue.put(_index)

while True:
Expand Down

0 comments on commit b268e03

Please sign in to comment.