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!

0 Upvotes

3 comments sorted by

1

u/marcel_bruder20 8d ago

If the 1,600 images span multiple characters, try a small run for one character with its own trigger token. That can show whether mixed identities are muddying the result before you tune weights.

1

u/dr_bagriwrites 13d ago

With over 1600 images, the dataset is likely your biggest lever. In my CS PhD work, the first thing I check is whether the training set is consistent in lighting, pose, crop and style. LoRA learns what is in the pictures, so mixing selfies, screenshots and heavily edited shots will distort the face. Try a tighter set of roughly 100 to 150 images in near identical framing and lighting. Crop faces to the same resolution and drop near duplicates. Use short specific captions about facial features and expressions instead of repeating the same words. Test every few epochs with a fixed seed to see what helps. If the small clean set improves, keep pruning instead of changing hyperparameters.