We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9efc14f commit c9b021eCopy full SHA for c9b021e
src/py/label_dir.py
@@ -37,9 +37,9 @@
37
#mkdir ('scanned')
38
39
for image_file in img_files:
40
- image_data = tf.gfile.FastGFile(var_path+"/"+image_file, 'rb').read()
+ image_data = tf.gfile.FastGFile(join(var_path, image_file), 'rb').read()
41
42
- print (var_path+"/"+image_file)
+ print join(var_path, image_file)
43
predictions = sess.run(softmax_tensor, \
44
{'DecodeJpeg/contents:0': image_data})
45
@@ -49,7 +49,7 @@
49
50
new_file_name = label_lines[firstElt] +"--"+ str(predictions[0][firstElt])[2:7]+".jpg"
51
print(new_file_name)
52
- copyfile(var_path+"/"+image_file, dest_dir+"/"+new_file_name)
+ copyfile(join(var_path, image_file), join(dest_dir, new_file_name))
53
54
for node_id in top_k:
55
human_string = label_lines[node_id]
0 commit comments