mirror of
https://github.com/xiph/opus.git
synced 2025-05-14 15:38:32 +00:00
missing script
This commit is contained in:
parent
3ff7e1ae2d
commit
054acff3c1
1 changed files with 12 additions and 0 deletions
12
training/txt2hdf5.py
Executable file
12
training/txt2hdf5.py
Executable 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()
|
Loading…
Add table
Add a link
Reference in a new issue