🤖 AI-Powered Training Support
Get personalized assistance with LoRA training, hardware-specific optimizations, configuration settings, and troubleshooting using ChatGPT.
MOSS-Image character LoRA training with LoKr
This is the fastest and most consistent setup I’ve found for training a character on MOSS-Image Base in Ostris AI Toolkit. I use 25–30 photos of one character and train for 1,200 steps. Across my runs, the image generated at step 900 has consistently been the closest match to the character, so the step-900 checkpoint is the one I use.
Download the AI Toolkit training config
Build the character dataset
Select 25–30 images. Check the entire frame, including the background and reflections. Only the character you’re training should be clearly visible.
| Framing | Share of the dataset | Example with 28 images |
|---|---|---|
| Clear facial close-ups | 30–40% | 10 |
| Waist-up shots | 30–40% | 10 |
| Full-body shots, head to toe | Remaining images | 8 |
Always include all three face angles among the close-ups: straight on (0°), three-quarter (about 45°), and full profile (90°). Check the direction of the face itself when choosing these shots. A sideways pose with the face turned toward the camera still counts as a frontal face view.
If an angle is missing, use a clear reference photo of the character in Gemini with the face-angle prompt I’ll share. I use Gemini for this step because it has preserved the character’s identity most consistently across angles in my tests. Compare each generated view with the reference before adding it to the dataset.
Gemini Prompt:
### Generate missing face angles with Gemini
If your dataset is missing a frontal, three-quarter, or full-profile view, upload **one clear reference photo** of your character to Gemini and paste the prompt below. I use Gemini for this step because, in my tests, it preserved the character’s identity most consistently across these angles.
<details>
<summary><strong>Show the Gemini three-view portrait prompt</strong></summary>
```text
Create ONE photorealistic horizontal 16:9 image containing exactly THREE studio portraits of the SAME person. Use the ONE uploaded photograph as the sole reference for identity and appearance.
IDENTITY AND FACIAL VOLUME
Treat the person as one fixed three-dimensional subject photographed from three viewpoints. Preserve their apparent age, skin tone, makeup, identifying marks, natural asymmetry, expression, and facial proportions. If the reference was taken at an angle, use its observed features as the anchor for all three views.
Preserve the width and fullness of the midface, the location of cheek volume, lower-cheek fullness, under-eye contours, jaw softness, chin shape and projection, natural tissue beneath the chin, neck thickness, and the transition from chin to neck. Keep the same underlying facial volume as the head turns. Allow natural foreshortening without slimming, widening, sculpting, or beautifying the face.
Keep the forehead, eyes, eyelids, eyebrows, nose, philtrum, and lips anatomically consistent. Preserve the reference expression in every view. Infer unseen features conservatively from the visible anatomy.
HAIR, GLASSES, AND ACCESSORIES
Rotate the head and its existing hairstyle together. Preserve the hairline, parting, length, volume, texture, color, and placement around the temples, cheeks, and ears. If hair covers an ear, retain that coverage wherever the viewpoint allows. Do not tuck, sweep, or lift strands to reveal the ear or the profile.
If the reference person wears glasses or sunglasses, KEEP THE EXACT SAME PAIR ON in all three views. Preserve the frame shape, thickness, color, bridge, lens tint, size, and fit on the nose. Let the frames and temple arms turn naturally with the head, including any parts hidden by hair. Keep clear lenses clear and tinted lenses tinted. If the person is not wearing glasses, do not add any. Preserve all other visible accessories and the clothing neckline.
EXACT THREE-VIEW LAYOUT
LEFT — FRONTAL, 0°: The head faces directly toward the camera. Keep it upright with no tilt. Preserve natural facial asymmetry.
CENTER — THREE-QUARTER, approximately 45°: Turn the head toward the RIGHT EDGE OF THE IMAGE. The nose points right. The far side of the face is naturally foreshortened. Preserve cheek fullness and jaw softness.
RIGHT — TRUE SIDE PROFILE, exactly 90°: Turn the head fully toward the RIGHT EDGE OF THE IMAGE. The nose points right. Keep the head level. The far eye, far eyebrow, and far cheek are hidden by the head. Show the profile contour of the forehead, nose, lips, chin, and neck wherever naturally visible. Keep any features covered by hair or glasses covered.
In every view, the gaze follows the direction of the face. The center and right portraits do not look back at the camera.
COMPOSITION AND LIGHTING
Arrange the portraits in three equal-width areas across one seamless pure-white canvas. Match head scale, camera distance, perspective, and eye height. Show the complete outer hair silhouette, head, chin, neck, and a small amount of upper shoulders in every view. Leave white space above and beside each portrait so each can be cropped separately without clipping hair or including part of the next portrait.
Use soft, neutral, diffuse studio lighting. Keep natural skin texture, pores, marks, and age-related details. Avoid wide-angle distortion, beauty retouching, skin smoothing, symmetry correction, and shadows that artificially sharpen the face.
FINAL OUTPUT
Return only ONE horizontal 16:9 image with exactly THREE portraits in this order: frontal / right-facing three-quarter / right-facing true side profile.
Before returning the image, check each portrait against the uploaded reference. Confirm that the facial fullness, chin-to-neck contour, hairstyle, expression, and eyewear remain consistent, and that the rightmost portrait is a true 90° profile.
No text, labels, borders, dividers, hands, props, extra people, or additional views.
```
Before adding the results to your dataset: Crop each portrait into a separate image. Compare each crop with the original photo, especially the cheeks, jawline, hairline, and glasses. Keep only the missing angles that preserve the character’s likeness. Each accepted crop counts as one image toward the 25–30 image total.
Captions and trigger word
Choose a distinctive trigger word for your character and enter it under Job → Trigger Word. My example uses grtstudios. Pair each image with a caption of the same filename, such as portrait_01.jpg and portrait_01.txt. Include the character’s trigger in the caption.
Use the same trigger word in every sample prompt and every generation prompt for that character. If you change the trigger in the job settings, replace grtstudios in the examples below with your own word.
Example caption for a matching training photo:
A close-up photo of grtstudios wearing a black shirt, facing the camera in daylight.
Example prompt for previewing checkpoints or generating with the trained adapter:
A candid portrait of grtstudios sitting beside a café window, looking toward the camera, soft afternoon light.
Model and adapter
| AI Toolkit setting | Value |
|---|---|
| Model Architecture | MOSS-Image Base |
| Name or Path | OpenMOSS-Team/MOSS-Image-Base |
| Training Name / GPU ID | grtstudios_test (example) / GPU #0 |
| Trigger Word | grtstudios (example) |
| Low VRAM / Layer Offloading | On / Off |
| Transformer / Text Encoder quantization | 8bit convrot for both |
| Compile Model | Off |
| Target Type | LoKr |
| LoKr Factor | 4 |
Dataset settings
| AI Toolkit setting | Value |
|---|---|
| Target Dataset | Your character dataset (grtstudios in this run) |
| Resolutions | 768 only |
| LoRA Weight / Num Repeats / Batch Size | 1 / 1 / 1 |
| Caption Extension / Caption Dropout Rate | txt / 0 |
| Default Caption | Leave empty |
| Cache Latents / Is Regularization | Off / Off |
| Flip X / Flip Y | Off / Off |
Training and checkpoint settings
| AI Toolkit setting | Value |
|---|---|
| Steps | 1,200 |
| Batch Size / Gradient Accumulation | 1 / 1 |
| Optimizer | Automagic v3 |
| Learning Rate | 0.000500 |
| Weight Decay | 0.0001 |
| Timestep Type / Timestep Bias | Shift / Balanced |
| Loss Type | Mean Squared Error |
| Cache Text Embeddings / Unload TE | On / Off |
| Use EMA | Off |
| Differential Output Preservation / Blank Prompt Preservation | Off / Off |
| Contrastive Guidance Loss | Off |
| Save Data Type | BF16 |
| Save Every / Max Step Saves to Keep | 150 steps / 4 |
Preview and select the checkpoint
Under Sample → Add Prompt, enter a prompt containing your trigger word before starting the run. Keep that prompt and seed fixed so you can compare the same character under the same conditions. Training uses 768 resolution. The preview images are 1024 × 1024.
| AI Toolkit setting | Value |
|---|---|
| Sample Start Step / Sample Every | 0 / 150 steps |
| Sampler | FlowMatch |
| Guidance Scale / Sample Steps | 3 / 30 |
| Width × Height | 1024 × 1024 |
| Seed / Walk Seed | 42 / Off |
| Skip First Sample / Force First Sample / Disable Sampling | Off / Off / Off |
Both saving and sampling run every 150 steps. To use the result shown in the step-900 preview, load the step-900 LoKr checkpoint and include your trigger word in the prompt.
Model tree for GRTSTUDIO/MOSS-Image-Character-LoRA-Training-Guide-900-Steps
Base model
OpenMOSS-Team/MOSS-Image-Base