Merge branch 'dev' of https://github.com/shahules786/enhancer into dev-hawk

This commit is contained in:
shahules786 2022-10-27 16:18:53 +05:30
commit 3a9e577ccb
1 changed files with 1 additions and 4 deletions

View File

@ -124,10 +124,7 @@ class TaskDataset(pl.LightningDataModule):
valid_sec_now = 0.0 valid_sec_now = 0.0
valid_indices = [] valid_indices = []
all_speakers = np.unique( all_speakers = np.unique(
[ [Path(file["clean"]).name.split("_")[0] for file in data]
(Path(file["clean"]).name.split("_")[0], file["duration"])
for file in data
]
) )
possible_indices = list(range(0, len(all_speakers))) possible_indices = list(range(0, len(all_speakers)))
rng = create_unique_rng(len(all_speakers)) rng = create_unique_rng(len(all_speakers))