changeset 15:d88ebe9130f3 draft

Uploaded
author greg
date Tue, 17 Oct 2017 11:16:18 -0400
parents d91971ea456a
children 9ff212b691b5
files yolo.xml
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/yolo.xml	Tue Oct 17 11:09:08 2017 -0400
+++ b/yolo.xml	Tue Oct 17 11:16:18 2017 -0400
@@ -9,10 +9,11 @@
 cp -R /home/greg/_conda/envs/__darknet@1.0/bin/* . &&
 #for $i in $input:
     #set input_filename = $i.file_name
-    #set name = $i.name
-    #set output_filename = "%s_predictions.png" % $name
-    ln -s $input_filename input_dir/$name &&
-    darknet detect cfg/yolo.cfg yolo.weights 'input_dir/$name' -thresh $thresh 2> /dev/null &&
+    #set full_name = $i.name
+    #set head = $full_name.split('.')[0]
+    #set output_filename = "%s_predictions.png" % $head
+    ln -s $input_filename input_dir/$full_name &&
+    darknet detect cfg/yolo.cfg yolo.weights 'input_dir/$full_name' -thresh $thresh 2> /dev/null &&
     mv ./predictions.png output_dir/$output_filename
 #end for
     ]]></command>