Skip to content

Commit

Permalink
Fixed the Segmentation fault during generating tfrecord for RNet and …
Browse files Browse the repository at this point in the history
…ONet.
  • Loading branch information
sumsuddin committed Jul 23, 2018
1 parent b8631ba commit 968f948
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion prepare_data/gen_ONet_tfrecords.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def run(dataset_dir, net, output_dir, name='MTCNN', shuffling=False):
sys.stdout.flush()
filename = image_example['filename']
_add_to_tfrecord(filename, image_example, tfrecord_writer)
tfrecord_writer.close()
# Finally, write the labels file:
# labels_to_class_names = dict(zip(range(len(_CLASS_NAMES)), _CLASS_NAMES))
# dataset_utils.write_label_file(labels_to_class_names, dataset_dir)
Expand Down
1 change: 0 additions & 1 deletion prepare_data/gen_RNet_tfrecords.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def run(dataset_dir, net, output_dir, name='MTCNN', shuffling=False):
sys.stdout.flush()
filename = image_example['filename']
_add_to_tfrecord(filename, image_example, tfrecord_writer)
tfrecord_writer.close()
# Finally, write the labels file:
# labels_to_class_names = dict(zip(range(len(_CLASS_NAMES)), _CLASS_NAMES))
# dataset_utils.write_label_file(labels_to_class_names, dataset_dir)
Expand Down

0 comments on commit 968f948

Please sign in to comment.