Skip to content
Snippets Groups Projects
Commit 05503d70 authored by Daniel Guderian's avatar Daniel Guderian
Browse files

Update orcasong_contrib/data_tools/make_data_split/make_data_split.py

parent 308b04ba
No related branches found
No related tags found
1 merge request!10Resolve "Jumps in training performance due to file changes"
......@@ -22,7 +22,7 @@ import toml
import docopt
import natsort as ns
import h5py
import random
def parse_input():
"""
......@@ -92,7 +92,9 @@ def get_h5_filepaths(dirpath):
if f.endswith('.h5'):
filepaths.append(dirpath + '/' + f)
filepaths = ns.natsorted(filepaths) # TODO should not be necessary actually!
#randomize order
random.Random(42).shuffle(filepaths)
return filepaths
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment