Skip to content

Commit

Permalink
Fix generate_sample_data.py - bug from BVLC#2978
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeyeager committed Sep 24, 2015
1 parent 349ff65 commit 859f938
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/caffe/test/test_data/generate_sample_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
f['label'] = label
f['label2'] = label2

with h5py.File(script_dir + '/sample_data_uint8_gzip.h5', 'w') as f:
with h5py.File(script_dir + '/sample_data_2_gzip.h5', 'w') as f:
f.create_dataset(
'data', data=data + total_size,
compression='gzip', compression_opts=1
Expand All @@ -54,7 +54,7 @@

with open(script_dir + '/sample_data_list.txt', 'w') as f:
f.write('src/caffe/test/test_data/sample_data.h5\n')
f.write('src/caffe/test/test_data/sample_uint8_gzip.h5\n')
f.write('src/caffe/test/test_data/sample_data_2_gzip.h5\n')

# Generate GradientBasedSolver solver_data.h5

Expand Down

0 comments on commit 859f938

Please sign in to comment.