missing script

This commit is contained in:
Jean-Marc Valin 2018-11-03 02:49:44 -04:00
parent 3ff7e1ae2d
commit 054acff3c1
No known key found for this signature in database
GPG key ID: 5E5DD9A36F9189C8

12
training/txt2hdf5.py Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/python
from __future__ import print_function
import numpy as np
import h5py
import sys
data = np.loadtxt(sys.argv[1], dtype='float32')
h5f = h5py.File(sys.argv[2], 'w');
h5f.create_dataset('data', data=data)
h5f.close()