Face dataset generator

Turn one face image into a captioned 20-shot LoRA training set with Qwen Image Edit 2509.

Collected by Icekiub, added Sep 27, 2026

Download JSON
GroupGroupGroupUNETLoaderMODELqwen_image_edit_2509_fp8_e4m3fn.safetensorsfp8_e4m3fnText MultilineSTRINGC:\ComfyUI\output\datasetsCR Prompt Listpromptbody_textshow_helpPhotorealistic profile view of the subject's face from the left, against a plain white wall background.01000TextEncodeQwenImageEditPlusclipvaeimage1image2image3promptCONDITIONINGKSamplermodelpositivenegativelatent_imageLATENT884578149671194fixed41eulerbeta1LoraLoaderModelOnlymodelMODELQwen-Image-Lightning-4steps-V1.0.safetensors1LoraLoaderModelOnlybypassedmodelMODELlenovoqwen.safetensors1CLIP Text Encode (Positive Prompt)clipCONDITIONINGPrompt List for dataset > StringConcatenatestring_astring_bSTRING\Face you generated > Text MultilineSTRINGMyCharacterCharacter name >SaveImageKJimagescaptionfilename_prefixoutput_folderfilenameComfyUISaving Path >ImageScaleToTotalPixelsGetImageSizeEmptyLatentImagePreviewImageimagesSaving and captioning moduleModelSamplingAuraFlowmodelMODEL3Models loading< 4 step lora< Dataset generationCLIPLoaderCLIPqwen_2.5_vl_7b_fp8_scaled.safetensorsqwen_imagedefaultVAEDecodesamplesvaeIMAGEVAELoaderVAEqwen_image_vae.safetensorsLoadImageIMAGEMASKyour_face.pngimage

Drag to pan, scroll to zoom, double-click to fit. 20 nodes, 25 links, 36 KB.

What it does

Load a single face and this graph runs it through a list of 20 prompts covering camera angles, lighting, and framing: profiles, three-quarter views, low and high angles, Rembrandt light, macro close-ups.

Each result is saved with a matching caption file named after your character, so the output folder is a ready-made dataset for training a character LoRA.

It runs Qwen Image Edit 2509 with the Lightning LoRA, so each shot needs only 4 sampling steps.

What you provide

Face image
One clear, front-facing face. A generated face works best.
Character name
Used as the caption text and the file prefix.
Output folder
Where the images and caption files are saved.

Good for

  • Training a character LoRA from a single face
  • Getting consistent angles and lighting without a photo shoot
  • Building a captioned dataset in one queue

Not for

  • Real people who haven't agreed to it
  • Full-body or outfit consistency; it's built around the face
  • Final, polished portraits; it makes training data

How to use it

  1. Drop your face image into the Load Image node.
  2. Set the character name. It becomes the caption and the file prefix.
  3. Set the saving path to the folder you want the dataset in.
  4. Queue once. The prompt list runs all 20 shots.

Set it up

Every custom node and model it needs, in one paste. Built from the workflow file, so it only lists what the graph actually uses.

# Face dataset generator
# Run from your ComfyUI folder. Needs comfy-cli (pip install comfy-cli) and ComfyUI-Manager.

# Custom nodes
comfy node install 'ComfyUI_Comfyroll_CustomNodes' 'comfyui-kjnodes' 'rgthree-comfy' 'was-ns'

# Models
comfy model download --url 'https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_edit_2509_fp8_e4m3fn.safetensors' --relative-path 'models/diffusion_models'
comfy model download --url 'https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Lightning-4steps-V1.0.safetensors' --relative-path 'models/loras'
comfy model download --url 'https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors' --relative-path 'models/text_encoders'
comfy model download --url 'https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors' --relative-path 'models/vae'
# No public link known for lenovoqwen.safetensors. Put it in models/loras. Optional.

# The workflow itself: drag it into ComfyUI once it's downloaded
curl -L -o 'face-dataset-generator.json' 'https://nodarium.app/download/qwen-face-dataset-generator'

Paste into a terminal in your ComfyUI folder.

Use this on faces you generated, or on people who have agreed to it.

More like this