Skip to content

Commit

Permalink
Merge pull request SeanNaren#97 from SeanNaren/update-load
Browse files Browse the repository at this point in the history
Removed encoding since it happens internally
  • Loading branch information
Sean Naren committed Jun 20, 2017
2 parents dba0e06 + ce5d3b6 commit 60b89f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


def load_audio(path):
sound, _ = torchaudio.load(path.encode('utf-8')) # py3 fix
sound, _ = torchaudio.load(path)
sound = sound.numpy()
if len(sound.shape) > 1:
if sound.shape[1] == 1:
Expand Down

0 comments on commit 60b89f0

Please sign in to comment.