Skip to content

Commit

Permalink
Merge pull request #3 from nakosung/patch-2
Browse files Browse the repository at this point in the history
Filter out non .wav files from scanned file list
  • Loading branch information
musyoku committed Feb 17, 2017
2 parents 6098ea3 + acef21d commit 39ce4f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions train_audio/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ def main():
files = []
fs = os.listdir(args.wav_dir)
for fn in fs:
print "loading", fn
files.append(fn)
# filter out non-wav files
if fn.endswith('.wav'):
print "loading", fn
files.append(fn)

# compute receptive field width
num_layers = len(params.residual_conv_channels)
Expand Down

0 comments on commit 39ce4f7

Please sign in to comment.