r/learnprogramming • • 13d ago

Topic Looking for help improving my LoRA training and image generation pipeline

Hey everyone,
I’ve been working on a personal AI image-generation project for the past few days, and I’ve reached a point where I’m struggling to figure out what I’m doing wrong.
I’m trying to train a model that can consistently reproduce specific character designs while maintaining their original facial features, proportions, expressions and overall visual style.
I’ve collected over 1,600 reference images and have spent quite a bit of time experimenting with the training process, but the results haven’t been what I expected.
My biggest issue is facial consistency. The generated images often have completely different face shapes, eye shapes and mouth structures compared to the reference images.
I’ve attached a comparison between the original anime images and the AI-generated results to give a better idea of the differences I’m talking about.
I’ve experimented with different LoRA weights (1.0, 1.3 and 1.6), but haven’t managed to get satisfactory results. Sometimes increasing the weight actually makes the output worse.
I’m starting to wonder if the problem is related to any of the following:
Dataset: Image selection, quality, variety or consistency.
Image preprocessing: Resizing, cropping and resolution.
Captioning: Whether my image descriptions are good enough.
Training configuration: Learning rate, epochs, batch size and other settings.
Model architecture: Whether I’m using the right approach for this type of training.
Generation settings: LoRA weights and inference parameters.
I’m hoping to get some advice from people with experience in LoRA training, Stable Diffusion or machine learning, particularly anyone who has worked on character-specific image generation.
I’d appreciate any suggestions, insights or recommendations on how to improve the training process and get more consistent results.
Any help would be greatly appreciated!

3 Upvotes

3 comments sorted by

3

u/prose_and_code 13d ago

This is probably not the correct place to post this, comfyui subs and stable diffusion sub might get you more help. Just as an fyi 1600 images is a lot for a lora file. Last time I experimented with LoRA training was Flux 1 and z image. I saw a lot of people including the developer of AI toolkit, OstrisAI suggest around 50 high quality images is a good target. I would highly recommend watching Ostris AI's YouTube videos, he does a lot of in depth walkthroughs for training on each model and explains all the settings.

1

u/mscott-61 8d ago

A raw image count alone may not tell you much: if the set mixes characters, styles, or inconsistent captions, a small hand-audited subset for one character could be a cleaner diagnostic than aiming for a specific number.

1

u/lisa_j_870 9d ago

Compare the same prompts, seeds, and inference settings across checkpoints, changing one variable at a time. That makes it easier to separate training changes from generation settings.