mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
inet label script
This commit is contained in:
parent
0df9d25c46
commit
d572dc7e66
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||
|
1000
data/inet.labels.list
Normal file
1000
data/inet.labels.list
Normal file
File diff suppressed because it is too large
Load Diff
15
scripts/label.sh
Normal file
15
scripts/label.sh
Normal file
@ -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
Block a user