Open camjac251 opened 4 years ago
Make sure your audio samples are larger than sample_length
Just to be 100% clear, do you mean segment_length?
Yes
Make sure your audio samples are larger than
sample_length
hi @rafaelvalle , can u tell me what exactly sample_length mean is?
i wirted a func that get the parameters of wav file as follows?
def getInfoWavFile(wfile):
f = wave.open(wfile)
params = f.getparams()
Channels = f.getnchannels()
SampleRate = f.getframerate()
bit_type = f.getsampwidth() * 8
frames = f.getnframes()
Duration = wav_time = frames / float(SampleRate)
return params, Channels, SampleRate, bit_type, frames, Duration
in this function which parameter should be >= sample_length(in my config sample_length=16000)?thanks
hey @mataym this is how I got the segment length information for my dataset
import wave
import contextlib
import os
min_length = 9999999
for file in os.listdir('data'):
with contextlib.closing(wave.open(os.path.join('data', file),'r')) as f:
frames = f.getnframes()
#rate = f.getframerate()
#length = frames / float(rate)
print(frames)
if frames < min_length:
min_length = frames
print()
print(min_length)
I've been having this error happen around the 1000~ epoch mark where I'll start seeing
WARNING:root:NaN or Inf found in input tensor.
with every iteration run on Colab.Is this safe to ignore? I tried looking it up and it seems to be related to tensorboard but I was worried it might be causing a model collapse or something with training.
Here's a shortened log of what it errors with. A full log is attached below
colab-full-error-log.txt