Skip to content

Commit 96781cd

Browse files
Merge pull request #67 from JannisBush/fix/output_labels
Fix underscore replacement in output_labels.txt
2 parents daeb57f + 7bc6a30 commit 96781cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_ros/src/tensorflow_ros/tf_retrain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def create_image_lists(image_dir, testing_percentage, validation_percentage):
260260
tf.logging.warning(
261261
'WARNING: Folder {} has more than {} images. Some images will '
262262
'never be selected.'.format(dir_name, MAX_NUM_IMAGES_PER_CLASS))
263-
label_name = re.sub(r'[^a-z0-9]+', ' ', dir_name.lower())
263+
label_name = re.sub(r'[^a-z0-9_]+', ' ', dir_name.lower())
264264
training_images = []
265265
testing_images = []
266266
validation_images = []

0 commit comments

Comments
 (0)