Mercurial > repos > greg > yolo
comparison yolo.xml @ 21:916208f6745d draft
Uploaded
| author | greg |
|---|---|
| date | Wed, 18 Oct 2017 13:21:33 -0400 |
| parents | c834e636fd66 |
| children | 87c8a4b6020d |
comparison
equal
deleted
inserted
replaced
| 20:c834e636fd66 | 21:916208f6745d |
|---|---|
| 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_png = '%s_predictions.png' % $head | 15 #set output_filename_image = '%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 > output_shape_confidence_dir/$output_filename_shape_confidence | 18 && darknet detect cfg/yolo.cfg yolo.weights 'input_dir/$full_name' -thresh $thresh -f jpg > output_shape_confidence_dir/$output_filename_shape_confidence |
| 19 && mv ./predictions.png output_png_dir/$output_filename_png | 19 && mv ./predictions.jpg output_png_dir/$output_filename_image |
| 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" /> |
| 26 <option value="yes" selected="true">Yes</option> | 26 <option value="yes" selected="true">Yes</option> |
| 27 <option value="no">No</option> | 27 <option value="no">No</option> |
| 28 </param> | 28 </param> |
| 29 </inputs> | 29 </inputs> |
| 30 <outputs> | 30 <outputs> |
| 31 <collection name="output_shape" type="list" label="${tool.name} (shapes) on ${on_string}"> | |
| 32 <discover_datasets pattern="__name__" directory="output_png_dir" format="png" /> | |
| 33 </collection> | |
| 34 <collection name="output_shape_confidence" type="list" label="${tool.name} (shape detection confidence) on ${on_string}"> | 31 <collection name="output_shape_confidence" type="list" label="${tool.name} (shape detection confidence) on ${on_string}"> |
| 35 <discover_datasets pattern="__name__" directory="output_shape_confidence_dir" format="tabular" /> | 32 <discover_datasets pattern="__name__" directory="output_shape_confidence_dir" format="tabular" /> |
| 36 <filter>output_shape_confidence == 'yes'</filter> | 33 <filter>output_shape_confidence == 'yes'</filter> |
| 34 </collection> | |
| 35 <collection name="output_shape" type="list" label="${tool.name} (shapes) on ${on_string}"> | |
| 36 <discover_datasets pattern="__name__" directory="output_png_dir" format="png" /> | |
| 37 </collection> | 37 </collection> |
| 38 </outputs> | 38 </outputs> |
| 39 <tests> | 39 <tests> |
| 40 <test> | 40 <test> |
| 41 </test> | 41 </test> |
