--- license: apache-2.0 task_categories: - text-to-image tags: - lora-training - character-lora - moss-image - int8-convrot - portrait - omnichar size_categories: - n<1K pretty_name: Lin, a MOSS-Image character LoRA configs: - config_name: training data_files: - split: train path: data/* - config_name: outputs data_files: - split: train path: outputs/* --- # Lin: a MOSS-Image character LoRA The `lin` character LoRA for MOSS-Image, the 10 image and caption pairs it trained on, and 16 renders from it with the exact prompt, seed and settings behind each one. The LoRA was trained and the renders made locally in [OmniChar](https://www.omnichar.org). **Provenance:** lin is a fictional character, not a real person. The 10 training photos were AI-generated on [OmniChar Cloud](https://cloud.omnichar.org). ![Lin laughing at an outdoor cafe table in Paris, a croissant and espresso in front of her](outputs/lin-07.jpg) ## Contents ``` data/ the training set metadata.jsonl one row per image: file_name + text, for the dataset viewer 0000.png 0000.txt ... 0009.png 0009.txt lora/ lin.safetensors the trained LoRA (149MB) outputs/ renders from the trained LoRA metadata.jsonl prompt, seed and settings for every render lin-01.jpg ... lin-15.jpg, lin-06b.jpg ``` Each `NNNN.png` has a matching `NNNN.txt` caption, the sidecar convention OmniChar, ComfyUI and kohya all read. Images are full resolution (2048×2048 and 1776×2368); the trainer centre-crops and resizes them to the training resolution. ## The LoRA `lora/lin.safetensors` is the LoRA these renders came from: rank 16, 149MB, trained on MOSS-Image SFT. Its keys use MOSS-Image's own layer names (`layers.N.proj.q.lora_A.weight`), so it loads on the int8 ConvRot and bf16 builds alike, and in other tools that read MOSS-Image LoRAs by those names. The file's metadata records what it was trained on (`inline_arch: moss-image`, `inline_base: moss_image_sft_int8_convrot.safetensors`, rank, steps and resolution), which is what lets OmniChar file it on a character as that character's MOSS-Image adapter. To use it in OmniChar, put it in `core/models/loras/`, or download it with: ```bash hf download inlineresearch/lin-moss-image-lora lora/lin.safetensors --repo-type dataset --local-dir . mv lora/lin.safetensors core/models/loras/ ``` ## Captions Every caption starts with the trigger word, then the phrase the whole set shares, then a plain description of the photo: ``` lin, photo of linchar woman, close-up, direct gaze, bare shoulders, hard side light, dark background, black and white photo ``` - **Trigger word:** `lin` - **Shared phrase:** `photo of linchar woman` Start a prompt with both to call the LoRA reliably. A prompt that only says `lin` works when the scene already implies a woman, but shot 6 below shows what happens when it doesn't. ## Training settings | Setting | Value | | --- | --- | | Base model | MOSS-Image SFT, int8 ConvRot (`moss_image_sft_int8_convrot.safetensors`) | | Text encoder | Qwen3.5-9B, int8 ConvRot (`qwen3.5_9b_int8_convrot.safetensors`) | | VAE | FLUX.2 small decoder (`flux2-vae_small.safetensors`) | | Base precision | int8, kept as stored; the LoRA trains at full precision on top | | Rank / alpha | 16 / 16 | | Targets | `q`, `k`, `v`, `o`, `ffn_up_gate`, `ffn_down` in all 42 blocks | | Steps | 1500 | | Batch size | 1 | | Learning rate | 1e-4, 8-bit Adam | | Resolution | 1024×1024 | | Caption dropout | 0.05 | | Flip augmentation | off | | GPU | NVIDIA RTX PRO 4500 (32GB) | | Time | 88 minutes start to finish, about 3.6 s per step | The three model files come from [Comfy-Org/MOSS-Image](https://huggingface.co/Comfy-Org/MOSS-Image). ## Generation settings Every render in `outputs/` used the same settings, with the LoRA at strength 1.0 and the seed set to the shot number: | Setting | Value | | --- | --- | | Size | 896×1152 | | Steps | 30 | | CFG | 3 | | Schedule shift | 5 | | Skip-layer guidance | block 22, negative pass only | | Negative prompt | `nsfw, worst quality, bad anatomy, watermark, jpeg artifact` | ## Outputs | | | | | --- | --- | --- | | ![Lin on a crowded subway holding the overhead rail](outputs/lin-01.jpg) | ![Lin reading a paperback cross-legged on a sunlit bed](outputs/lin-02.jpg) | ![Lin taking a mirror selfie in a gym locker room](outputs/lin-03.jpg) | | 1 · subway | 2 · reading in bed | 3 · gym mirror selfie | | ![Lin eating ramen at a Tokyo noodle counter](outputs/lin-04.jpg) | ![Lin on a rooftop at blue hour](outputs/lin-05.jpg) | ![Lin under a clear umbrella in the rain at night](outputs/lin-06b.jpg) | | 4 · ramen counter | 5 · rooftop, blue hour | 6b · rain, with the shared phrase | | ![Lin laughing at a Paris cafe](outputs/lin-07.jpg) | ![Lin on a misty mountain trail](outputs/lin-08.jpg) | ![Lin in a car passenger seat at golden hour](outputs/lin-09.jpg) | | 7 · Paris cafe | 8 · mountain trail | 9 · car, golden hour | | ![A studio beauty headshot of Lin](outputs/lin-10.jpg) | ![Lin at a farmers market holding oranges](outputs/lin-11.jpg) | ![Lin eating a sandwich on a park bench](outputs/lin-12.jpg) | | 10 · studio headshot | 11 · farmers market | 12 · park bench lunch | | ![Lin cycling along a canal path](outputs/lin-13.jpg) | ![Lin at a crosswalk holding an iced coffee](outputs/lin-14.jpg) | ![Lin folding a t-shirt on a laundromat floor](outputs/lin-15.jpg) | | 13 · canal path | 14 · crosswalk | 15 · laundromat | `outputs/lin-06.jpg` is shot 6 as first written. Its prompt never says the subject is a woman, and the bare trigger `lin` drew a man. `lin-06b.jpg` is the same prompt and seed with `photo of linchar woman` added. The full prompt for every shot is in `outputs/metadata.jsonl`. ## Generate with it in OmniChar 1. Install [OmniChar](https://github.com/omnichar/OmniChar) and put `lora/lin.safetensors` in `core/models/loras/`. 2. Add a MOSS-Image node, wire a LoRA loader set to `lin.safetensors` into it, and start the prompt with `lin, photo of linchar woman, …`. 3. To use it as a character, file it on a `.char` with the Attach Adapter node. The MOSS-Image node then applies it whenever that character is wired in. ## Train it yourself in OmniChar 1. Open the Trainer tab. 2. Create a dataset and drop in the `data/` folder. Image and `.txt` pairs are read automatically. 3. In Adjust, pick MOSS-Image, then the SFT int8 base, and match the settings above. 4. Wire the dataset into Train LoRA and press Start. The LoRA lands in `models/loras/`. ## Links - OmniChar: https://www.omnichar.org - MOSS-Image guide: https://www.omnichar.org/moss-image - MOSS-Image LoRA training docs: https://docs.omnichar.org/app/lora-training/moss-image - Source code: https://github.com/omnichar/OmniChar - OmniChar Cloud: https://cloud.omnichar.org ## License Apache-2.0, the same license as MOSS-Image itself. That covers the training photos, the renders and `lora/lin.safetensors`.