diff --git a/datasets/pascalvoc_to_tfrecords.py b/datasets/pascalvoc_to_tfrecords.py index 9ac20169b..d4dcae6c9 100644 --- a/datasets/pascalvoc_to_tfrecords.py +++ b/datasets/pascalvoc_to_tfrecords.py @@ -79,7 +79,7 @@ def _process_image(directory, name): width: integer, image width in pixels. """ # Read the image file. - filename = directory + DIRECTORY_IMAGES + name + '.jpg' + filename = directory + '/' + DIRECTORY_IMAGES + name + '.jpg' image_data = tf.gfile.FastGFile(filename, 'r').read() # Read the XML annotation file.