mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
scripts/README.md
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
Datasets:
|
||||
### Datasets:
|
||||
|
||||
Pascal VOC: http://host.robots.ox.ac.uk/pascal/VOC/voc2012/index.html
|
||||
|
17
scripts/get_imagenet_train.sh
Normal file
17
scripts/get_imagenet_train.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
wget http://www.image-net.org/challenges/LSVRC/2012/nnoupb/ILSVRC2012_img_train.tar
|
||||
mkdir -p ILSVRC2012_img_train
|
||||
tar --force-local -xf ILSVRC2012_img_train.tar -C ILSVRC2012_img_train
|
||||
|
||||
wd=`pwd`
|
||||
|
||||
for f in ILSVRC2012_img_train/*.tar;
|
||||
do
|
||||
name=$(echo "$f" | cut -f 1 -d '.')
|
||||
mkdir "${wd}/${name}"
|
||||
tar --force-local -xf "${wd}/${f}" -C "${wd}/${name}"
|
||||
done
|
||||
|
||||
find "${wd}/ILSVRC2012_img_train" -name \*.JPEG > imagenet1k.train.list
|
||||
|
Reference in New Issue
Block a user