GRTSTUDIOS

🤖 ChatGPT ile Eğitim Desteği

Eğitim sırasında karşılaştığınız hatalar, donanımınıza özel optimizasyonlar ve LoRA ayarları için ChatGPT'den destek alın.

ChatGPT ile Destek Al

MOSS-Image ile Karakter LoRA Eğitimi | 900 Adımda Tutarlı Yüzler

Ostris AI Toolkit’te MOSS-Image Base ile karakter eğitirken denediğim en hızlı ve tutarlı sonuçları bu LoKr ayarlarıyla aldım. Tek bir karakterin 25–30 fotoğrafını kullanıyor ve eğitimi 1200 adım çalıştırıyorum. Denemelerimde karaktere en çok benzeyen yüzü her seferinde 900. adımın önizlemesinde gördüm. Bu yüzden görsel üretirken 900. adımda kaydedilen LoKr dosyasını kullanıyorum.

AI Toolkit eğitim yapılandırmasını indir

Karakter veri setini hazırlama

En az 25, en fazla 30 görsel seçin. Arka planı ve aynalardaki yansımaları da kontrol edin. Kadrajda yalnızca eğiteceğiniz karakter net görünmeli.

Kadraj Veri setindeki payı 28 görsellik örnek
Yüzün net göründüğü yakın plan %30–40 10
Belden yukarısı %30–40 10
Baştan ayağa tam boy Kalan görseller 8

Yakın planlar arasında tam önden (0°), üç çeyrek açıdan (yaklaşık 45°) ve tam profilden (90°) çekilmiş yüz fotoğrafları mutlaka bulunsun. Açıyı yüzün baktığı yöne göre değerlendirin. Örneğin vücudu yana dönük bir karakter doğrudan kameraya bakıyorsa bu görsel önden yüz açısı sayılır.

Bir açı eksikse karakterin net bir referans fotoğrafını ve paylaşacağım yüz açıları promptunu Gemini’ye vererek eksik açıyı oluşturabilirsiniz. Bu adımda Gemini’yi kullanıyorum çünkü denemelerimde farklı açılarda yüz kimliğini en tutarlı koruyan araç oldu. Üretilen her yüzü veri setine eklemeden önce referans fotoğrafla karşılaştırın.

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.
```

Görselleri veri setinize eklemeden önce:

  1. Üç portreyi ayrı ayrı kırpın.
  2. Her portreyi orijinal fotoğrafla karşılaştırın. Özellikle yanaklara, çene hattına, saç çizgisine ve varsa gözlüklere dikkat edin.
  3. Yalnızca veri setinizde eksik olan ve karakterin yüz hatlarını doğru yansıtan açıları ekleyin.

Eklediğiniz her portre, 25–30 görsellik veri setinde bir görsel sayılır.

Görsel açıklamaları ve tetikleyici kelime

Karaktere özgü bir tetikleyici kelime seçip Job → Trigger Word alanına yazın. Benim örneğimde bu kelime grtstudios. Her görselin yanına aynı adı taşıyan bir açıklama dosyası koyun. Örneğin portrait_01.jpg görselinin açıklamasını portrait_01.txt dosyasına yazın ve karakterin tetikleyici kelimesini açıklamaya ekleyin.

Hem eğitim önizlemelerinde hem de eğitilmiş LoKr ile görsel üretirken her promptta aynı tetikleyici kelimeyi kullanın. Kendi karakteriniz için aşağıdaki örneklerde geçen grtstudios kelimesini seçtiğiniz kelimeyle değiştirin.

Siyah gömlekli karakterin gün ışığında kameraya baktığı bir eğitim fotoğrafı için örnek açıklama:

A close-up photo of grtstudios wearing a black shirt, facing the camera in daylight.

Hem önizlemede hem de eğitim sonrasında kullanabileceğiniz örnek prompt:

A candid portrait of grtstudios sitting beside a café window, looking toward the camera, soft afternoon light.

Model ve LoKr ayarları

AI Toolkit ayarı Değer
Model Architecture MOSS-Image Base
Name or Path OpenMOSS-Team/MOSS-Image-Base
Training Name / GPU ID grtstudios_test (örnek) / GPU #0
Trigger Word grtstudios (örnek)
Low VRAM / Layer Offloading Açık / Kapalı
Transformer / Text Encoder Her ikisi için 8bit convrot
Compile Model Kapalı
Target Type LoKr
LoKr Factor 4

Veri seti ayarları

AI Toolkit ayarı Değer
Target Dataset Kendi karakter veri setiniz (bu eğitimde grtstudios)
Resolutions Yalnızca 768
LoRA Weight / Num Repeats / Batch Size 1 / 1 / 1
Caption Extension / Caption Dropout Rate txt / 0
Default Caption Boş bırakın
Cache Latents / Is Regularization Kapalı / Kapalı
Flip X / Flip Y Kapalı / Kapalı

Eğitim ve kayıt ayarları

AI Toolkit ayarı Değer
Steps 1200
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 Açık / Kapalı
Use EMA Kapalı
Differential Output Preservation / Blank Prompt Preservation Kapalı / Kapalı
Contrastive Guidance Loss Kapalı
Save Data Type BF16
Save Every / Max Step Saves to Keep 150 adımda bir / son 4 kayıt

Önizleme ve checkpoint seçimi

Eğitimi başlatmadan önce Sample → Add Prompt alanına tetikleyici kelimenizi içeren bir prompt girin. Eğitim boyunca promptu ve seed değerini sabit tutun. Böylece farklı adımlardaki yüz benzerliğini aynı koşullarda karşılaştırabilirsiniz. Eğitim çözünürlüğü 768, önizleme boyutu 1024 × 1024 pikseldir.

AI Toolkit ayarı Değer
Sample Start Step / Sample Every 0 / 150 adımda bir
Sampler FlowMatch
Guidance Scale / Sample Steps 3 / 30
Width × Height 1024 × 1024
Seed / Walk Seed 42 / Kapalı
Skip First Sample / Force First Sample / Disable Sampling Kapalı / Kapalı / Kapalı

Bu ayarlarla her 150 adımda bir LoKr dosyası kaydedilir ve bir önizleme üretilir. 900. adımın önizlemesindeki yüzü kullanmak için üretim sırasında 900. adımda kaydedilen LoKr dosyasını yükleyin ve promptunuza karakterin tetikleyici kelimesini ekleyin.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for GRTSTUDIO/MOSS-Image-Character-LoRA-Training-Guide-900-Steps-TR

Finetuned
(63)
this model