Skip to content

Commit

Permalink
Fix stop frame
Browse files Browse the repository at this point in the history
  • Loading branch information
Marishka17 committed May 23, 2024
1 parent a8b55db commit 914b7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/dataset_manifest/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def __init__(self,
self._data_dir = kwargs.get('data_dir', None)
self._use_image_hash = use_image_hash
self._start = start
self._stop = stop if stop or self._is_generator_used else len(sources)
self._stop = stop if stop or self._is_generator_used else len(sources) - 1
if self._stop is None:
raise ValueError('The stop parameter should be passed when generator is used')
self._step = step
Expand Down

0 comments on commit 914b7bc

Please sign in to comment.