chore: closes #36
This commit is contained in:
@@ -27,6 +27,7 @@ DATA_DIR_PREPARE = DATA_DIR + "/"
|
||||
def pathToLabel(path):
|
||||
path = tf.strings.regex_replace(path, DATA_DIR_PREPARE, "")
|
||||
path = tf.strings.regex_replace(path, ".jpg", "")
|
||||
path = tf.strings.regex_replace(path, ".jpeg", "")
|
||||
path = tf.strings.regex_replace(path, ".png", "")
|
||||
return table.lookup(tf.strings.as_string([path]))
|
||||
#return tf.strings.as_string([path])
|
||||
|
||||
Reference in New Issue
Block a user