# HG changeset patch
# User greg
# Date 1508423704 14400
# Node ID 17f0c9ef9da3be2e69ba6d32778576ba8ea2aa62
# Parent f8b16e55b18c29bb370bd0fa2db8ca52498e1bce
Uploaded
diff -r f8b16e55b18c -r 17f0c9ef9da3 yolo.xml
--- a/yolo.xml Thu Oct 19 10:09:08 2017 -0400
+++ b/yolo.xml Thu Oct 19 10:35:04 2017 -0400
@@ -4,26 +4,29 @@
darknet
$output_shape_confidence
+ #if str($output_shape_confidence_log) == 'yes':
+ && darknet detect cfg/yolo.cfg yolo.weights 'input_dir/$full_name' -thresh $thresh 2> $output_shape_confidence
+ #else:
+ && darknet detect cfg/yolo.cfg yolo.weights 'input_dir/$full_name' -thresh $thresh 2> /dev/null
&& mv ./predictions.png $output_shape
#else:
+ && mkdir output_shape_confidence_dir
+ && mkdir output_png_dir
#for $i in $input:
#set input_filename = $i.file_name
#set full_name = $i.name
#set head = $full_name.split('.')[0]
#set output_filename_png = '%s_predictions.png' % $head
- #set output_filename_shape_confidence = '%s_shape_detection_confidence.tabular' % $head
+ #set output_filename_shape_confidence = '%s_shape_detection_confidence.txt' % $head
&& ln -s $input_filename input_dir/$full_name
- && darknet detect cfg/yolo.cfg yolo.weights 'input_dir/$full_name' -thresh $thresh > output_shape_confidence_dir/$output_filename_shape_confidence
+ && darknet detect cfg/yolo.cfg yolo.weights 'input_dir/$full_name' -thresh $thresh 2> output_shape_confidence_dir/$output_filename_shape_confidence
&& mv ./predictions.png output_png_dir/$output_filename_png
#end for
#end if
@@ -48,23 +51,28 @@
-
+
input_type_cond['input_type'] == 'image' and output_shape_confidence_log == 'yes'
input_type_cond['input_type'] == 'image'
-
+
input_type_cond['input_type'] == 'images' and output_shape_confidence_log == 'yes'
-
+
input_type_cond['input_type'] == 'images'
+
+
+
+
+