How to Train a LoRA of Yourself or a Character on a Mac
Why a Person Is the Hardest Subject
So a LoRA of a coffee mug is forgiving, if the handle is slightly off nobody notices. A face is the opposite. People are tuned to spot tiny differences in faces, so a LoRA that is 90% right looks like a stranger who resembles you, and that last 10% is what the whole process is about. The good news is the method is well worn and the mistakes are predictable.
The real variable is not the training settings, it is whether the model can work out which features are you and which are just this photo. Your eye shape is in every picture. So is your face shape. But if your blue jacket is in every picture too, the model has no way to know the jacket is not part of your body. A person LoRA basically means "this is what stays the same about them across everything else changing".
Step by Step: A Real Person
What to include: front, three quarter and side views, some smiling and some neutral, sharp focus on the face, natural light where possible. What to leave out: sunglasses, hats in more than a couple of shots, heavy makeup you do not always wear, group photos, filters and beauty modes, anything where the face is small or blurred, and photos from years apart.
Resize the set with the sips command as shown in building a LoRA training dataset, and crop any image where the face is small so it fills more of the frame.
zxq and follow it with the class, zxq man or zxq woman. Then describe what is changeable in the photo and nothing that is permanently you.
echo "a photo of zxq man standing in a kitchen, wearing a grey shirt, soft window light" > 01.txt
echo "a close up photo of zxq man outdoors, smiling, trees in the background, overcast day" > 02.txt
echo "a full body photo of zxq man walking on a city street, wearing a black coat and jeans" > 03.txt
Clothing, location, lighting, expression and framing all go in the caption, because those are the things you want to control later. Hair color, eye color, face shape, a beard you always have, glasses you always wear, do not mention them. Anything left out of the captions gets absorbed into zxq man. If you sometimes wear glasses and sometimes not, that is changeable, so write "wearing glasses" on the photos that have them.
"training_loop": { "num_epochs": 70, "batch_size": 1, "timestep_low": 4, "timestep_high": 9 },
"optimizer": { "name": "AdamW", "learning_rate": 1e-4 },
"checkpoint": { "output_path": "training", "save_frequency": 150 },
Write preview prompts that test what you care about. One plain one for likeness, and 2 that pull away from the training photos:
echo "a close up portrait photo of zxq man, neutral background" > preview_1.txt
echo "a photo of zxq man in a tuxedo at a formal dinner" > preview_2.txt
echo "an oil painting of zxq man as a ship captain" > preview_3.txt
Generate the same 3 or 4 test prompts from several checkpoints and compare them side by side. Use a fixed seed so the only thing changing is the LoRA:
mflux-generate-z-image-turbo \
--prompt "a photo of zxq man in a tuxedo at a formal dinner" \
--steps 9 -q 8 --seed 7 \
--lora-paths step1200/0001200_adapter.safetensors \
--lora-scales 1.0 \
--output test_1200.png
Show the results to someone who knows you. You are a poor judge of your own face, you know it mirrored, and other people will spot what is off in a second.
Training an Original Character
Now the case where it flips. With a real person the photos are easy and the likeness is hard. With a made up character, a game character, a mascot, a comic lead, there is no likeness to argue about, the character looks like whatever you say, but you may have only 1 drawing, or 5 that do not quite match each other. You cannot train on 1 image, the LoRA would memorize that single picture and repeat it forever.
So the job is to build the dataset before you train on it. There are 3 workable routes:
Draw or commission a character sheet. The traditional answer and still the best. Front, side, back, three quarter, a few expressions, a few poses. 15 to 20 clean images of the character on plain backgrounds, plus a handful in scenes.
Generate variations with an editing model. The newer image models can take a reference picture and redraw the same character in a new pose or setting. FLUX.2 klein and Qwen Image 2.1 both do reference based editing in mflux, and FLUX 3 Image Klein accepts up to 10 reference images at once. Feed in your 1 good image, ask for the character from the side, sitting, running, in the rain, and keep only the outputs that truly match. Expect to throw away most of them.
Render from a 3D model. If the character exists as a 3D model, as game characters often do, render it from 30 angles with different lighting. That is a perfectly consistent dataset for free, and the only catch is the LoRA will learn the render style too, so caption the style ("3d render") in every image to keep it separable.
Whichever route, be strict. Every image that goes in the folder is a vote on what the character looks like, and 15 images that all agree beat 40 where the hair changes length. Fixed details are what make a character recognizable, the scar, the color of the scarf, the shape of the ears, so check those in every image.
Captions for a Character
Same pattern, with a class word that fits: zxq girl, zxq robot, zxq knight. The decision to make is the outfit. If the character always wears the same thing and that outfit is part of who they are, leave it out of the captions so it gets absorbed into the trigger. If you want to change their clothes later, describe the outfit in every caption. And name the art style in each one, "digital illustration", "pixel art", "3d render", so you can ask for a different style later.
Using the LoRA Well
Keep the trigger and class word together and near the start of the prompt. Start at a scale of 1.0 and adjust, 0.8 loosens the likeness and frees up the styling, 1.2 tightens it. For full body or distant shots, faces lose detail simply because they cover fewer pixels, so generate larger or crop in.
Once you have a character LoRA that holds up, it is also the first half of making consistent video, since the usual method is to generate stills of the character and animate those. That is covered in consistent characters in images and video.
The Line Not to Cross
Train on yourself, on people who have clearly agreed to it, and on characters you created or have the rights to. A LoRA of a real person who did not agree, a celebrity, an ex, a coworker, can be used to make convincing fake images of them, and in a growing number of places making or sharing those is illegal, especially anything sexual or anything presented as real. Training on someone else's copyrighted character for a commercial project is its own legal problem. The tool does not check any of this, so the judgment is yours.