mirror of https://github.com/AlexeyAB/darknet.git
inet label script
This commit is contained in:
parent
0df9d25c46
commit
d572dc7e66
|
@ -3,7 +3,6 @@
|
|||
*.csv
|
||||
*.out
|
||||
*.png
|
||||
*.sh
|
||||
mnist/
|
||||
data/
|
||||
caffe/
|
||||
|
|
|
@ -6,6 +6,7 @@ width=256
|
|||
channels=3
|
||||
learning_rate=0.00001
|
||||
momentum=0.9
|
||||
seen=0
|
||||
decay=0.0005
|
||||
|
||||
[crop]
|
||||
|
@ -146,6 +147,7 @@ output=1000
|
|||
activation=linear
|
||||
|
||||
[softmax]
|
||||
groups=1
|
||||
|
||||
[cost]
|
||||
type=sse
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
mkdir -p labelled
|
||||
wd=`pwd`
|
||||
|
||||
for f in val/*.xml;
|
||||
do
|
||||
label=`grep -m1 "<name>" $f | grep -oP '<name>\K[^<]*'`
|
||||
im=`echo $f | sed 's/val/imgs/; s/xml/JPEG/'`
|
||||
out=`echo $im | sed 's/JPEG/'${label}'.JPEG/; s/imgs/labelled/'`
|
||||
ln -s ${wd}/$im ${wd}/$out
|
||||
done
|
||||
|
||||
find ${wd}/labelled -name \*.JPEG > inet.val.list
|
||||
|
Loading…
Reference in New Issue