> For the complete documentation index, see [llms.txt](https://openadapt.gitbook.io/openadapt.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openadapt.gitbook.io/openadapt.ai/reference/api-reference/openadapt-module/scripts-module/generate_dataset.py.md).

# generate\_dataset.py

Usage:

```
$ python openadapt/scripts/generate_dataset.py <dataset_id>
```

Once you are done and would like to save the dataset locally for finetuning, run the above command and the dataset will be saved at openadapt/vision/vision\_dataset as a JSON file containing the window states and a directory of images. The images are named after their id and the window states use this id to preserve the relationship.
