Skip to main content

Generate Image Dataset from Prompts (dataset_imagegen)

This plugin generates an image dataset using the local text-to-image diffusion model such as Stable Diffusion. It takes prompts from a user-provided dataset and outputs generated images along with associated metadata.

Step 1: Prepare Your Dataset

You must upload a dataset with prompts using the Datasets tab.

Supported Metadata Fields

  • prompt: Required. The main prompt used for image generation.
  • negative_prompt: Optional. Used to guide the model away from undesired traits.
  • Any additional metadata fields are ignored during generation.
Dataset Creation

Step 2: Configure Plugin Parameters

When setting up a generation job with dataset_imagegen, configure the following parameters:

ParameterDescriptionRequiredExample
Prompt ColumnName of the column that contains prompts"prompt"
Negative Prompt ColumnName of the column for negative prompts (leave empty if not used)"negative_prompt"
Prompt PostfixOptional text to append to each prompt (useful for adding trigger words or style cues)"as a painting"
Image WidthWidth of generated images (pixels)512
Image HeightHeight of generated images (pixels)512
Images Per PromptHow many images to generate per prompt4
SeedSet seed for reproducibility (use -1 for random seed)42
Guidance ScaleHow strictly the model follows the prompt7.5
Number of Inference StepsQuality/speed trade-off for generation30
Input Parameters

Step 3: Start the Job

After uploading your dataset and configuring parameters, start the generation by clicking on the Queue button. You can monitor progress in the "Executions" tab.

Each row in your dataset will be used to generate one or more images (the number of generated images depends on the input parameters in step 2).

Step 4: View the Output

You can preview the dataset using the UI inside the Generate or the Datasets -> Generated Datasets tabs (the latter provides a tool to edit the text fields and create a new dataset as well) or export it for downstream use.

Example Use Case

PromptNegative PromptPostfix
"a futuristic city skyline at sunset""low resolution""as Persian artwork"

This will generate image(s) of futuristic cities painted using a Persian artwork style, while avoiding low-resolution features.

Generation Process