Skip to content

Commit

Permalink
[bigs] Fixed a bug caused by a type error (#696)
Browse files Browse the repository at this point in the history
* 修正了因为类型错误导致的bug

* remove ds_store

---------

Co-authored-by: Cheng <cheng@ChengdeMacBook-Air.local>
  • Loading branch information
Xinyi-Cheng and Cheng authored Apr 10, 2024
1 parent d10b407 commit 2c7fe19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asteroid/data/librimix_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __getitem__(self, idx):
sources_list = []
# If there is a seg start point is set randomly
if self.seg_len is not None:
start = random.randint(0, row["length"] - self.seg_len)
start = random.randint(0, int(row["length"] - self.seg_len))
stop = start + self.seg_len
else:
start = 0
Expand Down

0 comments on commit 2c7fe19

Please sign in to comment.