mirror of https://github.com/AlexeyAB/darknet.git
parent
d5cb0b490c
commit
540beb52ec
2 changed files with 50 additions and 0 deletions
@ -0,0 +1,22 @@ |
|||||||
|
echo Run install_cygwin.cmd before: |
||||||
|
|
||||||
|
rem http://cvlab.hanyang.ac.kr/tracker_benchmark/datasets.html |
||||||
|
|
||||||
|
c:\cygwin64\bin\bash -l -c "cd %CD:\=/%/; echo $PWD" |
||||||
|
|
||||||
|
|
||||||
|
c:\cygwin64\bin\wget http://cvlab.hanyang.ac.kr/tracker_benchmark/seq/Human3.zip |
||||||
|
|
||||||
|
c:\cygwin64\bin\unzip -o "%CD:\=/%/Human3.zip" |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
c:\cygwin64\bin\dos2unix "%CD:\=/%/windows_otb_get_labels.sh" |
||||||
|
|
||||||
|
c:\cygwin64\bin\bash -l -c "cd %CD:\=/%/; %CD:\=/%/windows_otb_get_labels.sh" |
||||||
|
|
||||||
|
rem c:\cygwin64\bin\find "%CD:\=/%/img" -name \*.jpg > otb_train.txt |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
pause |
@ -0,0 +1,28 @@ |
|||||||
|
#!/bin/bash |
||||||
|
|
||||||
|
export LC_NUMERIC="en_US.UTF-8" |
||||||
|
|
||||||
|
wd=`pwd` |
||||||
|
IFS=',' |
||||||
|
|
||||||
|
dataset="Human3" |
||||||
|
class_id=0 |
||||||
|
w=480 |
||||||
|
h=640 |
||||||
|
num=1 |
||||||
|
|
||||||
|
while read -a line; do |
||||||
|
filename=$(printf "$dataset/img/%04d.txt" $num) |
||||||
|
#rm $filename.txt |
||||||
|
echo "$class_id " > $filename |
||||||
|
printf "%.5f " "$(($((line[0] + line[2]/2)) * 100000 / $w))e-5" >> $filename |
||||||
|
printf "%.5f " "$(($((line[1] + line[3]/2)) * 100000 / $h))e-5" >> $filename |
||||||
|
printf "%.5f " "$(($((line[2])) * 100000 / $w))e-5" >> $filename |
||||||
|
printf "%.5f " "$(($((line[3])) * 100000 / $h))e-5" >> $filename |
||||||
|
num=$((num + 1)) |
||||||
|
done < $dataset/groundtruth_rect.txt |
||||||
|
|
||||||
|
echo "$dataset" > $dataset/otb.names |
||||||
|
|
||||||
|
|
||||||
|
find $dataset/img -name \*.jpg > otb_train.txt |
Loading…
Reference in new issue