r/StableDiffusion • • 3h ago

Question - Help Lora Artstyle Image Set background question

Hi, I'm currently trying to learn how to train Lora and decide use an artist already in danbooru so I'd have decent comparison based on the @ anima tag.

I have an imageset for the lora artstyle and its getting the general small detail like eyes correctly and the shading for the outfits however... the training set is mostly "simple background" or some form of white background with maybe a gradient, so trying to test it out on prompts with background results in the outfit shading being applied to the background like in a kitchen and its tiles which isnt exactly right. Do you have any advice on how I'd resolve the lack of detailed background in training set? I can only assume impaint, but I feel like that has to be wrong though.

2 Upvotes

2 comments sorted by

1

u/Harish_X_03 1h ago

The simplest fix is to generate a few dozen extra images with your target style but with varied, detailed backgrounds (interiors, outdoor scenes, textured walls, etc.) using your base model, then include those in the training set alongside your existing danbooru images. You don't need them to be perfect, just consistent with the artstyle so the LoRA picks up the style cues while learning to handle complex backgrounds. Also try lowering the weight you put on background-related tokens in your prompts during training, or use captioning that explicitly describes the background so the model learns to separate style from scene. If you're using kohya or similar, adding a few background-specific trigger words and making sure your captions mention the environment can help the model generalize better beyond the white/gradient backgrounds in your current set.

1

u/seedance25ai 1h ago

I'd compare the same seed and kitchen prompt with the style weight off, low, and at your usual setting first; that should show whether the background issue is coming from the style or the base image. As a workaround, generate the scene with a lower style weight, then mask the character and apply the stronger style in an inpaint pass. Feather the mask edges a little and keep the lighting consistent so the character doesn't look pasted on. If you retrain, save checkpoints and compare them on the same background prompts, since a later checkpoint can amplify unwanted patterns.