Mercurial > repos > greg > yolo
comparison yolo.xml @ 12:5f41fd2c559d draft
Uploaded
author | greg |
---|---|
date | Tue, 17 Oct 2017 11:06:18 -0400 |
parents | 88b5111cb5dd |
children | 7b23bb42fc2a |
comparison
equal
deleted
inserted
replaced
11:88b5111cb5dd | 12:5f41fd2c559d |
---|---|
5 </requirements> | 5 </requirements> |
6 <command detect_errors="exit_code"><![CDATA[ | 6 <command detect_errors="exit_code"><![CDATA[ |
7 mkdir input_dir && | 7 mkdir input_dir && |
8 mkdir output_dir && | 8 mkdir output_dir && |
9 cp -R /home/greg/_conda/envs/__darknet@1.0/bin/* . && | 9 cp -R /home/greg/_conda/envs/__darknet@1.0/bin/* . && |
10 #for $index, $i in enumerate('$input'): | 10 #for $i in '$input': |
11 #set input_filename = $i.file_name | 11 #set input_filename = $i.file_name |
12 #set name = $i.name | 12 #set name = $i.name |
13 #set output_filename = "%s_predictions.png" % str($index).zfill(5) | 13 #set output_filename = "%s_predictions.png" % $name |
14 ln -s $input_filename input_dir/$name && | 14 ln -s $input_filename input_dir/$name && |
15 darknet detect cfg/yolo.cfg yolo.weights 'input_dir/$name' -thresh $thresh 2> /dev/null && | 15 darknet detect cfg/yolo.cfg yolo.weights 'input_dir/$name' -thresh $thresh 2> /dev/null && |
16 mv ./predictions.png output_dir/output_filename | 16 mv ./predictions.png output_dir/$output_filename |
17 #end for | 17 #end for |
18 ]]></command> | 18 ]]></command> |
19 <inputs> | 19 <inputs> |
20 <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" /> |
21 <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" /> |