Skip to content

Commit

Permalink
Revert "Global split for dataset"
Browse files Browse the repository at this point in the history
  • Loading branch information
zzh8829 committed May 11, 2020
1 parent c940823 commit c2739d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/voc2012.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def main(_argv):

writer = tf.io.TFRecordWriter(FLAGS.output_file)
image_list = open(os.path.join(
FLAGS.data_dir, 'ImageSets', 'Main', '%s.txt' % FLAGS.split)).read().splitlines()
FLAGS.data_dir, 'ImageSets', 'Main', 'aeroplane_%s.txt' % FLAGS.split)).read().splitlines()
logging.info("Image list loaded: %d", len(image_list))
for image in tqdm.tqdm(image_list):
name, _ = image.split()
Expand Down

0 comments on commit c2739d3

Please sign in to comment.