mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
coco dataset script
This commit is contained in:
parent
72a2fe93f9
commit
9358bbc57a
31
scripts/get_coco_dataset.sh
Normal file
31
scripts/get_coco_dataset.sh
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Clone COCO API
|
||||||
|
git clone https://github.com/pdollar/coco
|
||||||
|
cd coco
|
||||||
|
|
||||||
|
mkdir images
|
||||||
|
cd images
|
||||||
|
|
||||||
|
# Download Images
|
||||||
|
wget -c https://pjreddie.com/media/files/train2014.zip
|
||||||
|
wget -c https://pjreddie.com/media/files/val2014.zip
|
||||||
|
|
||||||
|
# Unzip
|
||||||
|
unzip -q train2014.zip
|
||||||
|
unzip -q val2014.zip
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# Download COCO Metadata
|
||||||
|
wget -c https://pjreddie.com/media/files/instances_train-val2014.zip
|
||||||
|
wget -c https://pjreddie.com/media/files/coco/5k.part
|
||||||
|
wget -c https://pjreddie.com/media/files/coco/trainvalno5k.part
|
||||||
|
wget -c https://pjreddie.com/media/files/coco/labels.tgz
|
||||||
|
tar xzf labels.tgz
|
||||||
|
unzip -q instances_train-val2014.zip
|
||||||
|
|
||||||
|
# Set Up Image Lists
|
||||||
|
paste <(awk "{print \"$PWD\"}" <5k.part) 5k.part | tr -d '\t' > 5k.txt
|
||||||
|
paste <(awk "{print \"$PWD\"}" <trainvalno5k.part) trainvalno5k.part | tr -d '\t' > trainvalno5k.txt
|
||||||
|
|
@ -548,7 +548,7 @@ void train_dcgan(char *cfg, char *weight, char *acfg, char *aweight, int clear,
|
|||||||
printf("%f\n", genaloss);
|
printf("%f\n", genaloss);
|
||||||
|
|
||||||
scal_ongpu(imlayer.outputs*imlayer.batch, 1, imerror, 1);
|
scal_ongpu(imlayer.outputs*imlayer.batch, 1, imerror, 1);
|
||||||
scal_ongpu(imlayer.outputs*imlayer.batch, .1, gnet.layers[gnet.n-1].delta_gpu, 1);
|
scal_ongpu(imlayer.outputs*imlayer.batch, .00, gnet.layers[gnet.n-1].delta_gpu, 1);
|
||||||
|
|
||||||
printf("realness %f\n", cuda_mag_array(imerror, imlayer.outputs*imlayer.batch));
|
printf("realness %f\n", cuda_mag_array(imerror, imlayer.outputs*imlayer.batch));
|
||||||
printf("features %f\n", cuda_mag_array(gnet.layers[gnet.n-1].delta_gpu, imlayer.outputs*imlayer.batch));
|
printf("features %f\n", cuda_mag_array(gnet.layers[gnet.n-1].delta_gpu, imlayer.outputs*imlayer.batch));
|
||||||
|
Loading…
Reference in New Issue
Block a user