Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMax2016 committed Mar 7, 2023
1 parent cdb9426 commit 8a00633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _filter(self):
assert sr == self.hp.audio.sampling_rate
if len(audio) > self.hp.audio.segment_length * 2:
items_new.append([wavpath, pitch, ppg])
self.itmes = items_new
self.items = items_new

def __len__(self):
return len(self.items)
Expand All @@ -68,7 +68,7 @@ def __getitem__(self, idx):
return self.my_getitem(idx)

def my_getitem(self, idx):
item = self.itmes[idx]
item = self.items[idx]
wav = item[0]
pit = item[1]
ppg = item[2]
Expand Down

0 comments on commit 8a00633

Please sign in to comment.