Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graph/3rdparty/opus/training/txt2hdf5.py
Joshua Goins a7fc58f7b5 Improve Windows support
Graph now includes more libraries out of the box, similiar
to Prism.
2022-03-27 22:22:02 -04:00

12 lines
234 B
Python

#!/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()