# Creating an image dataset

To build a new network you need a dataset. Your data should be structured like:

```
  [folder]/[directory]/*.png
```

## Creating a Dataset

Datasets in HyperGAN are meant to be simple to create. Just use a folder of images.

```
 [folder]/*.png
```

For jpg(pass `-f jpg`)

## Downloadable datasets

* 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 <http://image-net.org/>
* youtube-dl (see [examples/Readme.md](/hypergan/examples-1/2d.md))

## Cleaning up data

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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hypergan.gitbook.io/hypergan/tutorials/creating-an-image-dataset.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
