liveBook · Manning

Dataset

As explained in Local Image Generation

A dataset is a structured collection of data examples used for analysis or machine-learning development.

A dataset is the pile of examples a model learns from, but it should be more useful than a random camera roll. For a custom image LoRA, a small collection of 10–30 well-chosen images can be enough, provided the images are clear, lightly compressed, and close to the resolution you want to generate. section 13.2.1

Build an image dataset around what the model needs to recognize:

  • Use varied views, distances, poses, and backgrounds so the subject does not become confused with a couch, harness, or other repeated detail. section 13.2.1
  • Add image files to a new AI-Toolkit dataset, then name it so it is easy to select during training. section 13.2.2
  • Caption each image. Captions act as labels: descriptions of the image and, effectively, the prompts the model should learn to associate with it. section 13.2.2
  • Confirm that the intended dataset is selected when creating the training job; the correct images are not much help if the job uses a different set. section 13.3

A dataset for a dog LoRA

A “Keats” dataset can contain phone photos of the dog from close up and far away, standing, running, lying down, and viewed from several angles. Captions label what each image shows. This variety helps separate the dog’s identity from recurring props such as a couch or walking harness. section 13.2.1 section 13.2.2

Figure 13.3 A few photos of Keats that we’ll be using.

Browse the sample photos to see the useful mix of poses, framing, and viewpoints in an image dataset. section 13.2.1

How Local Image Generation covers it

How deep it goes
Gives practical collection criteria and a UI workflow for uploading and labeling images, without detailing model internals.
Examples
Uses a named Keats image set with varied phone photos of a dog, including poses, angles, couch scenes, and harnesses.
What it assumes
Starts from collected image files and treats ordinary phone photos as suitable when their quality and resolution are adequate.
What you can do after
Operate/configure it via AI-Toolkit by creating, naming, uploading, captioning, and selecting an image dataset for a LoRA job.
How it connects
Connects datasets to LoRAs, captions, labels, prompts, training jobs, and Flux models.

Also explained in

Compare how 30 books explain dataset →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Local Image Generation. The section links point to the parts of the book it draws on.