SDXL LoRA trainer - auto set up, only need image folder
A workflow to train SDXL LoRAs.
Perfil de execução
- Acesso
- Fluxo de trabalho externo
- Status
- Listados
- Fonte
- Civitai
- Atualizado
- 24 de out. de 2026
Descrição da fonte
A workflow to train SDXL LoRAs.
This workflow is based on the incredible work by Kijai ( https://github.com/kijai/ComfyUI-FluxTrainer ) who created the training nodes for ComfyUI based on Kohya_ss ( https://github.com/kohya-ss/sd-scripts ) work. All credits go to them. Thanks also to u/tom83_be on Reddit who posted his installation and basic settings tips.
What it does: As the name suggests, it trains LoRAs for SDXL models. You have to select your picture folder, it generates the tags for them, then starts training. It does so in 4 loops with separate LoRAs generating for each step values (eg: you use 2000 steps for teaching, you'll have 500/1000/1500/2000 step LoRAs generated).
I have colored the nodes for each category of setting up the dataset, initializing data and selecting main settings.
Set up dataset Additional tag : If your character is less known, or you want something added in addition to the automatic tags, you can set it up here. Load from folder : The folder you placed your pictures in. Tagged dataset folder : This is the folder where your pictures along with its textual tags will be generated, resized, copied. The training data for your LoRA. Width/height : resized your image data to these values. I recommend 1024x1024, but 512 and 768 works as well.
Initialize Trigger words : If you want your LoRA to use a specific trigger word or a collection of words, you type them here. Sample prompt : This will be used to generate the preview for each training loop, just some peace of mind and progress tracking.
Main settings SDXL model select : Select the SDXL model you train your LoRA with. Note that while your LoRA might work well for other models, especially merges of similar ones, results may vary greatly based on checkpoints, as is the case for every LoRA. Init SDXL LoRA Training : These are the main training variables. You can play around with them as much as you like, especially if you're more of an expert than me, but setting up output name for your LoRA and output directory should be done regardless. You can leave the rest as is, or experiment with them, as well as the non-colored nodes; for simplicity's sake now I'm only going to explain what I myself use, too.
Last but not least, you're going to decide on the learning steps you will use for your LoRA. Since there are 4 training loops, I use it like this: X number for each step, max_train_steps are the total (4 times X steps) number. For the example I'll be showing my LoRA training with 900 steps.
Rest of the workflow with no need for manual input
A preview of the training dataset. I used a pretty well defined model for showcasing low step training.
The training loop, where you can see the generated LoRA for each initial steps (for this one it's 225, 450, 675 and 900 steps). Note that while the recommended total steps range from 2000 to 3000, for this one 900 did a fine job, and it took about 15 minutes (on a 4090).
Finalize nodes create a trainer sheet and miscellaneous things that you can see here. A comparison of the checkpoint I used (4nimapencil) with and without the LoRA.
What you need
Hardware and download-size estimates are not available yet.
Requisitos
Modelos
14nimaPencilXL_v101.safetensors
Não resolvidoLoRA · Unknown
Pacotes de nós
6- Encontrado
Pacote de nós · Registry
- Encontrado
Pacote de nós · Registry
- Encontrado
Pacote de nós · Registry
- Encontrado
Pacote de nós · Registry
- Encontrado
Pacote de nós · Registry
was-node-suite-comfyui
PossívelPacote de nós · Registry
Comentário gerado por IA
Explicação gerada por IA com base nos detalhes da fonte e da configuração. As sugestões são claramente identificadas.
Propósito
This SDXL 1.0 workflow trains LoRAs from a picture folder using a selected SDXL model and training settings; it prepares a tagged, resized training set and produces LoRAs at four step values, loop previews, a trainer sheet, and a checkpoint comparison.
Fluxo
Choose a picture folder and a destination for the tagged training set. The workflow generates tags, resizes and copies the images, then prepares them for training.
Training runs in four loops, creating a LoRA and preview for each step value. Finalization creates a trainer sheet and compares the selected checkpoint with and without the LoRA.
Entradas e saídas
Inputs include picture and tagged-set folders, image dimensions, optional extra tags, trigger words, a sample prompt, an SDXL model, and training settings.
Outputs include tagged, resized images; LoRAs at successive steps; loop previews; a trainer sheet; and a checkpoint comparison.
Configuração
Before training, set the LoRA output name and destination folder, then choose the picture folders, SDXL model, and training settings.
Sugestão · não verificado
Dependências
Listed node packs include ComfyUI-Easy-Use, ComfyUI-FluxTrainer, ComfyUI-KJNodes, ComfyUI-WD14-Tagger, and rgthree-comfy.
The workflow also lists the file `4nimaPencilXL_v101.safetensors`.
It also names `was-node-suite-comfyui`; verify which ComfyUI package is intended before installing.
Sugestão
Configuração
The author recommends resizing images to 1024×1024; 512 and 768 are also listed as options.
Sugestão · não verificado
Add an extra tag to supplement automatic tags, and enter trigger words if you want the LoRA to use specific words.
Sugestão · não verificado
Use a sample prompt for loop previews; set `max_train_steps` to four times the step count for each loop.
Sugestão · não verificado
Precauções
Confirm that `4nimaPencilXL_v101.safetensors` is available and the file you intend to use; the page does not list a license, so check usage terms.
Sugestão · não verificado
Isso precisa ser editado?
Faça login para enviar uma solicitação de edição.
Fontes
1 fonte
Fontes
1 fonteTrechos de fonte
3 trechos
Trechos de fonte
3 trechosSource context: 7998 downloads · Type Workflows · Base model SDXL 1.0
Source context: 7977 downloads · Type Workflows · Base model SDXL 1.0
Source context: 7961 downloads · Type Workflows · Base model SDXL 1.0
