Mercurial > repos > greg > yolo
comparison yolo.xml @ 9:0206a6a1b89e draft
Uploaded
author | greg |
---|---|
date | Tue, 17 Oct 2017 10:55:45 -0400 |
parents | da04a9890937 |
children | b087daa22607 |
comparison
equal
deleted
inserted
replaced
8:da04a9890937 | 9:0206a6a1b89e |
---|---|
2 <description>real-time object detection</description> | 2 <description>real-time object detection</description> |
3 <requirements> | 3 <requirements> |
4 <requirement type="package" version="1.0">darknet</requirement> | 4 <requirement type="package" version="1.0">darknet</requirement> |
5 </requirements> | 5 </requirements> |
6 <command detect_errors="exit_code"><![CDATA[ | 6 <command detect_errors="exit_code"><![CDATA[ |
7 mkdir output && | 7 mkdir input_dir && |
8 mkdir output_dir && | |
8 cp -R /home/greg/_conda/envs/__darknet@1.0/bin/* . && | 9 cp -R /home/greg/_conda/envs/__darknet@1.0/bin/* . && |
9 darknet detect cfg/yolo.cfg yolo.weights '$input' -thresh $thresh 2> /dev/null | 10 #for $index, $i in enumerate('$input'): |
10 && mv ./predictions.png output | 11 #set input_filename = $i.file_name |
12 #set name = $i.name | |
13 #set output_filename = %05d_predictions.png % index | |
14 ln -s $input_filename input_dir/$name && | |
15 darknet detect cfg/yolo.cfg yolo.weights 'input_dir/$name' -thresh $thresh 2> /dev/null && | |
16 mv ./predictions.png output_dir/output_filename | |
17 #end for | |
11 ]]></command> | 18 ]]></command> |
12 <inputs> | 19 <inputs> |
13 <param name="input" format="jpg" type="data_collection" collection_type="list" label="Collection of image files" /> | 20 <param name="input" format="jpg" type="data_collection" collection_type="list" label="Collection of image files" /> |
14 <param name="thresh" type="float" value="0.25" label="Object detection threshold" /> | 21 <param name="thresh" type="float" value="0.25" label="Object detection threshold" /> |
15 </inputs> | 22 </inputs> |
16 <outputs> | 23 <outputs> |
17 <collection name="output" type="list"> | 24 <collection name="output" type="list"> |
18 <discover_datasets pattern="__name__" directory="output" format="png" /> | 25 <discover_datasets pattern="__name__" directory="output_dir" format="png" /> |
19 </collection> | 26 </collection> |
20 </outputs> | 27 </outputs> |
21 <tests> | 28 <tests> |
22 <test> | 29 <test> |
23 </test> | 30 </test> |