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
|
*.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
|
||||||
|
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