comparison yolo.xml @ 22:87c8a4b6020d draft

Uploaded
author greg
date Wed, 18 Oct 2017 13:31:46 -0400
parents 916208f6745d
children 53a9c312fe7a
comparison
equal deleted inserted replaced
21:916208f6745d 22:87c8a4b6020d
10 cp -R /home/greg/_conda/envs/__darknet@1.0/bin/* . 10 cp -R /home/greg/_conda/envs/__darknet@1.0/bin/* .
11 #for $i in $input: 11 #for $i in $input:
12 #set input_filename = $i.file_name 12 #set input_filename = $i.file_name
13 #set full_name = $i.name 13 #set full_name = $i.name
14 #set head = $full_name.split('.')[0] 14 #set head = $full_name.split('.')[0]
15 #set output_filename_image = '%s_predictions.png' % $head 15 #set output_filename_png = '%s_predictions.png' % $head
16 #set output_filename_shape_confidence = '%s_shape_detection_confidence.tabular' % $head 16 #set output_filename_shape_confidence = '%s_shape_detection_confidence.tabular' % $head
17 && ln -s $input_filename input_dir/$full_name 17 && ln -s $input_filename input_dir/$full_name
18 && darknet detect cfg/yolo.cfg yolo.weights 'input_dir/$full_name' -thresh $thresh -f jpg > output_shape_confidence_dir/$output_filename_shape_confidence 18 && darknet detect cfg/yolo.cfg yolo.weights 'input_dir/$full_name' -thresh $thresh > output_shape_confidence_dir/$output_filename_shape_confidence
19 && mv ./predictions.jpg output_png_dir/$output_filename_image 19 && mv ./predictions.png output_png_dir/$output_filename_png
20 #end for 20 #end for
21 ]]></command> 21 ]]></command>
22 <inputs> 22 <inputs>
23 <param name="input" format="jpg" type="data_collection" collection_type="list" label="Collection of image files" /> 23 <param name="input" format="jpg" type="data_collection" collection_type="list" label="Collection of image files" />
24 <param name="thresh" type="float" value="0.25" label="Object detection threshold" /> 24 <param name="thresh" type="float" value="0.25" label="Object detection threshold" />