Commit f5fb748e authored by Luca Pasa's avatar Luca Pasa
Browse files

minor mod

parent 4015a91e
......@@ -20,6 +20,7 @@ def downsampling(samples, sample_rate, downsample_rate):
return signal.resample(samples, num_samples)
if __name__ == '__main__':
print "compute npy base audio"
features_file_list_base_audio = sorted(glob.glob('/home/storage/Data/MULTI_GRID_100/s*/base_audio/*.wav'))
for wav_file in features_file_list_base_audio:
rate, wav_rap = read(wav_file)
......@@ -27,7 +28,19 @@ if __name__ == '__main__':
wav_rap=np.reshape(wav_rap,(1,wav_rap.shape[0]))
stsf_rap=compute_stsf(wav_rap)[0]
file_name=(os.path.splitext(wav_file)[0])+".npy"
#print file_name
print file_name
np.save(file_name,stsf_rap)
print "compute npy multi audio"
features_file_list_base_audio = sorted(glob.glob('/home/storage/Data/MULTI_GRID_100/s*/multi_audio/*.wav'))
for wav_file in features_file_list_base_audio:
rate, wav_rap = read(wav_file)
wav_rap=downsampling(wav_rap,rate,16000)#downsamplig to 16khz
wav_rap=np.reshape(wav_rap,(1,wav_rap.shape[0]))
stsf_rap=compute_stsf(wav_rap)[0]
file_name=(os.path.splitext(wav_file)[0])+".npy"
print file_name
np.save(file_name,stsf_rap)
......@@ -6,7 +6,7 @@ import tensorflow as tf
if __name__ == '__main__':
num_epochs = 500
batch_size = 30
batch_size = 15
nIn_audio = 123
nIn_video = 134
nHidden = [123,500,600]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment