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
|
*.csv
|
||||||
*.out
|
*.out
|
||||||
*.png
|
*.png
|
||||||
*.sh
|
|
||||||
mnist/
|
mnist/
|
||||||
data/
|
data/
|
||||||
caffe/
|
caffe/
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -1,5 +1,5 @@
|
||||||
GPU=0
|
GPU=1
|
||||||
OPENCV=0
|
OPENCV=1
|
||||||
DEBUG=0
|
DEBUG=0
|
||||||
|
|
||||||
ARCH= -arch=sm_52
|
ARCH= -arch=sm_52
|
||||||
|
|
|
@ -6,6 +6,7 @@ width=256
|
||||||
channels=3
|
channels=3
|
||||||
learning_rate=0.00001
|
learning_rate=0.00001
|
||||||
momentum=0.9
|
momentum=0.9
|
||||||
|
seen=0
|
||||||
decay=0.0005
|
decay=0.0005
|
||||||
|
|
||||||
[crop]
|
[crop]
|
||||||
|
@ -146,6 +147,7 @@ output=1000
|
||||||
activation=linear
|
activation=linear
|
||||||
|
|
||||||
[softmax]
|
[softmax]
|
||||||
|
groups=1
|
||||||
|
|
||||||
[cost]
|
[cost]
|
||||||
type=sse
|
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