Creating an image dataset
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
To build a new network you need a dataset. Your data should be structured like:
[folder]/[directory]/*.png
Datasets in HyperGAN are meant to be simple to create. Just use a folder of images.
[folder]/*.png
For jpg(pass -f jpg
)
Loose images of any kind can be used
CelebA aligned faces http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html
MS Coco http://mscoco.org/
ImageNet
youtube-dl (see )
To convert and resize your data for processing, you can use imagemagick
for i in *.jpg; do convert $i -resize "300x256" -gravity north -extent 256x256 -format png -crop 256x256+0+0 +repage $i-256x256.png;done