shithub: opus

Download patch

ref: 054acff3c142c147e3b5801a13347f04c56f0eb5
parent: 3ff7e1ae2d46ca325ee7cbbc14388ec138f4273f
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Fri Nov 2 22:49:44 EDT 2018

missing script

--- /dev/null
+++ b/training/txt2hdf5.py
@@ -1,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()