Run this model with HF Jobs
Run MATLOWAI/MOSS-Image-SFT-DeBand on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/MATLOWAI/MOSS-Image-SFT-DeBand. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/MATLOWAI/MOSS-Image-SFT-DeBand on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use MATLOWAI/MOSS-Image-SFT-DeBand with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusion Single File
How to use MATLOWAI/MOSS-Image-SFT-DeBand with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Rename to SFT DeBand: preset results, size sweep, one banding scale
Browse filesFiles changed (30)
- .gitattributes+16
- README.md+136-62
- images/anime_pier_setups.jpgAdded
- images/cinematic_ballroom_setups.jpgAdded
- images/cinematic_viking_setups.jpgAdded
- images/fjord_sky_768x1024_color.png
- images/fjord_sky_768x1024_photo.png
- images/fog_forest_768x1024_color.png
- images/fog_forest_768x1024_photo.png
- images/goose_1024_color.png
- images/goose_1024_photo.png
- images/goose_768x1024_color.png
- images/goose_768x1024_photo.png
- images/layout_check_setups.jpgAdded
- images/oil_still_life_768x1024_color.png
- images/oil_still_life_768x1024_photo.png
- images/presets_fjord_sky_color.jpgAdded
- images/presets_fjord_sky_photo.jpgAdded
- images/presets_fog_forest_color.jpgAdded
- images/presets_fog_forest_photo.jpgAdded
- images/presets_goose_color.jpgAdded
- images/presets_goose_photo.jpgAdded
- images/presets_oil_still_life_color.jpgAdded
- images/presets_oil_still_life_photo.jpgAdded
- images/presets_product_glass_color.jpgAdded
- images/presets_product_glass_photo.jpgAdded
- images/product_glass_768x1024_color.png
- images/product_glass_768x1024_photo.png
- images/widthsweep_fjord_sky.jpgAdded
- images/widthsweep_fog_forest.jpgAdded
54 unmodified lines55565754 unmodified linesimages/before_after_goose.jpg filter=lfs diff=lfs merge=lfs -textimages/cinematic_neon_presets.jpg filter=lfs diff=lfs merge=lfs -textimages/presets_default_prompt.jpg filter=lfs diff=lfs merge=lfs -text54 unmodified lines5556575859606162636465666768697071727354 unmodified linesimages/before_after_goose.jpg filter=lfs diff=lfs merge=lfs -textimages/cinematic_neon_presets.jpg filter=lfs diff=lfs merge=lfs -textimages/presets_default_prompt.jpg filter=lfs diff=lfs merge=lfs -textimages/anime_pier_setups.jpg filter=lfs diff=lfs merge=lfs -textimages/cinematic_ballroom_setups.jpg filter=lfs diff=lfs merge=lfs -textimages/cinematic_viking_setups.jpg filter=lfs diff=lfs merge=lfs -textimages/layout_check_setups.jpg filter=lfs diff=lfs merge=lfs -textimages/presets_fjord_sky_color.jpg filter=lfs diff=lfs merge=lfs -textimages/presets_fjord_sky_photo.jpg filter=lfs diff=lfs merge=lfs -textimages/presets_fog_forest_color.jpg filter=lfs diff=lfs merge=lfs -textimages/presets_fog_forest_photo.jpg filter=lfs diff=lfs merge=lfs -textimages/presets_goose_color.jpg filter=lfs diff=lfs merge=lfs -textimages/presets_goose_photo.jpg filter=lfs diff=lfs merge=lfs -textimages/presets_oil_still_life_color.jpg filter=lfs diff=lfs merge=lfs -textimages/presets_oil_still_life_photo.jpg filter=lfs diff=lfs merge=lfs -textimages/presets_product_glass_color.jpg filter=lfs diff=lfs merge=lfs -textimages/presets_product_glass_photo.jpg filter=lfs diff=lfs merge=lfs -textimages/widthsweep_fjord_sky.jpg filter=lfs diff=lfs merge=lfs -textimages/widthsweep_fog_forest.jpg filter=lfs diff=lfs merge=lfs -text
2 unmodified lines3456781 unmodified line1011121314151617181920212223242526277 unmodified lines3536373839404142434445464748495051525354555657585960616263644 unmodified lines69707172737475766 unmodified lines83848586878889903 unmodified lines9495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441458 unmodified lines1541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931948 unmodified lines2032042052062 unmodified linesbase_model:- OpenMOSS-Team/MOSS-Image-SFT- OpenMOSS-Team/MOSS-Image-Basetags:- comfyui- lora1 unmodified line- text-to-image---# MOSS-Image SFT banding fixThe MOSS-Image **SFT** model often draws faint, evenly spaced **vertical color stripes** across smooth areas like skies, fog, backdrops and walls. This LoRA removes most of them while keeping the image very close to what SFT would have made. It also comes with preset workflows that combine the fix with community speed LoRAs for 10β14 step (or 4β8 step) generation.## TL;DR1. Download [`moss_image_sft_banding_fix_L37-41_bf16.safetensors`](moss_image_sft_banding_fix_L37-41_bf16.safetensors) into `ComfyUI/models/loras/`.2. In your MOSS-Image workflow, add **Load LoRA** (model only) after the SFT model (`moss_image_sft_bf16.safetensors` from [Comfy-Org/MOSS-Image](https://huggingface.co/Comfy-Org/MOSS-Image)) and set it to **1.0**. No custom nodes needed.3. **Or** drag [`workflows/moss_banding_fix_presets.json`](workflows/moss_banding_fix_presets.json) into ComfyUI and pick a preset: **Quality** (25 steps), **Quality+** (stronger fix), **Balanced** (14 steps), **Fast** / **Fast alt** (10 steps). The files each preset needs are listed [below](#preset-workflows-in-detail).4. Want 4β8 steps? Use [`workflows/moss_banding_fix_presets_rapid_moss.json`](workflows/moss_banding_fix_presets_rapid_moss.json) for the **Turbo** presets. It needs two custom nodes; see the setup below.How it works: the LoRA is an exact weight difference that turns SFT's **last five transformer layers (37β41)** back into the Base model's weights and leaves everything else untouched. How those layers were found is [further down](#how-the-layers-were-found), with the full write-up in [ANALYSIS.md](ANALYSIS.md).## Examples7 unmodified lines</details>**Every preset on the default prompt:** this is exactly what the preset workflows produce out of the box (1024Γ1024, one seed, every preset). This scene doesn't band much even on plain SFT, so it shows the look and speed of each preset; the before/after pairs above show the banding.**A busy cinematic scene, 1280Γ720:** text, crowds, reflections, steam and neon all hold up with the fix and with the speed presets.## Preset workflows in detailTwo ready-made ComfyUI workflows are in [`workflows/`](workflows). Pick a **Preset** from the dropdown at the top; it sets every LoRA strength and the step count for you. The default prompt is a cozy winter scene: a woman in a penguin sweater with a penguin mug at a window over an icy bay.| Preset | What it does | Steps ||---|---|---|| **Quality** | SFT + banding fix | 25 || **Quality+** | SFT + banding fix + extra fix for layers 32β36 (cleanest, slightly different look) | 25 || **Balanced** | fix + lodestones 8-step DMD LoRA at 0.28 | 14 || **Fast** | fix + lodestones 8-step DMD LoRA at 0.35 | 10 || **Fast alt** | fix + darask0 4-step LoRA at 0.35 | 10 || **Off** | plain SFT, to compare | 25 || **Turbo** *(rapid-moss workflow only)* | lodestones 8-step adapter + fix, its own sampler | 8 || **Turbo max** *(rapid-moss workflow only)* | darask0 4-step adapter + fix, its own sampler (about 3 s per image on an RTX 5090) | 4 |The speed presets keep SFT's composition fairly well; the Turbo presets are fastest but recompose the scene more.### `moss_banding_fix_presets.json`: stock ComfyUI, no custom nodes4 unmodified lines| `moss_image_sft_bf16.safetensors` | `diffusion_models` | [Comfy-Org](https://huggingface.co/Comfy-Org/MOSS-Image/resolve/main/diffusion_models/moss_image_sft_bf16.safetensors) || `qwen3.5_9b_int8_convrot.safetensors` | `text_encoders` | [Comfy-Org](https://huggingface.co/Comfy-Org/MOSS-Image/resolve/main/text_encoders/qwen3.5_9b_int8_convrot.safetensors) || `flux2-vae.safetensors` | `vae` | [Comfy-Org](https://huggingface.co/Comfy-Org/MOSS-Image/resolve/main/vae/flux2-vae.safetensors) || `moss_image_sft_banding_fix_L37-41_bf16.safetensors` | `loras` | [this repo](https://huggingface.co/MATLOWAI/MOSS-Image-SFT-banding-experimental/resolve/main/moss_image_sft_banding_fix_L37-41_bf16.safetensors) || `moss_image_sft_banding_fix_L32-36_extra_bf16.safetensors` | `loras` | [this repo](https://huggingface.co/MATLOWAI/MOSS-Image-SFT-banding-experimental/resolve/main/moss_image_sft_banding_fix_L32-36_extra_bf16.safetensors) || `lodestones_moss_sft_8step_dmd_lora_latest.safetensors` | `loras` | [`lora_latest.safetensors` from lodestones](https://huggingface.co/lodestones/MOSS-Image-SFT-8-steps-dmd/resolve/main/lora_latest.safetensors), **renamed** || `darask0_moss_sft_4step_dmad_lora.safetensors` | `loras` | [`lora.safetensors` from darask0](https://huggingface.co/darask0/MOSS-Image_4-step_adapter_lora/resolve/main/lora.safetensors), **renamed** |6 unmodified lines- **Custom nodes**, each folder copied into `ComfyUI/custom_nodes/`:- OpenMOSS's [`moss-image`](https://github.com/OpenMOSS/MOSS-Image/tree/main/comfyui/moss-image) (the `comfyui/moss-image` folder of their GitHub repo);- darask0's [`rapid-moss`](https://huggingface.co/darask0/MOSS-Image_4-step_adapter_lora/tree/main/comfyui/rapid-moss) (the `comfyui/rapid-moss` folder of their Hugging Face repo).- **[`moss_image_sft_bf16_split_qkv.safetensors`](https://huggingface.co/MATLOWAI/MOSS-Image-SFT-banding-experimental/resolve/main/split_qkv/moss_image_sft_bf16_split_qkv.safetensors)** (10.2 GB, this repo) β `models/diffusion_models`. The rapid-moss adapters patch q, k and v separately, so they need the SFT model with q/k/v stored apart. This file is the official [OpenMOSS-Team/MOSS-Image-SFT](https://huggingface.co/OpenMOSS-Team/MOSS-Image-SFT) transformer as a single file, with the same 463 tensors. The Comfy-Org file fuses q/k/v; with it, the rapid-moss adapters produce noise or a black image without raising an error.- **[`moss_image_sft_banding_fix_L37-41_bf16_splitqkv.safetensors`](https://huggingface.co/MATLOWAI/MOSS-Image-SFT-banding-experimental/resolve/main/moss_image_sft_banding_fix_L37-41_bf16_splitqkv.safetensors)** (this repo) β `models/loras`. The same banding fix, laid out for the split model.- **Adapter folders**, each holding three files with exactly these names:| Folder | `lora.safetensors` | `time_embedding.safetensors` | `dataspace.safetensors` |3 unmodified linesOnly the branch for the chosen preset runs, so the normal presets don't load the split model.## ResultsSame prompt, seed and settings in every column. **Banding** is the strength of the repeating vertical color stripe (lower is better; compare within a row). **SFT similarity** is SSIM against the Full SFT image (higher keeps more of the SFT look).| Image | Full SFT banding | **This fix**: banding / SFT similarity | Kijai 21β49 @ β0.5 | Base model ||---|---|---|---|---|| Perfume bottle (768Γ1024) | 21.6 | **9.1** / 93.0% | 16.1 / 90.7% | 15.1 / 81.7% || Fjord sky (768Γ1024) | 39.5 | **32.7** / 90.1% | 30.8 / 88.2% | 5.6 / 77.7% || Goose (768Γ1024) | 122.1 | **16.0** / 69.4% | 23.0 / 50.7% | 15.8 / 45.4% || Fog forest (768Γ1024) | 76.8 | **14.4** / 85.5% | 32.8 / 81.0% | 7.4 / 59.0% || Oil still life (768Γ1024) | 54.9 | **17.5** / 89.5% | 21.3 / 85.4% | 10.4 / 60.5% || Goose (1024Γ1024) | 41.0 | **19.4** / 77.4% | 15.9 / 62.1% | 18.8 / 47.4% || **Mean SFT similarity** | | **84.2%** | 76.3% | 62.0% |Settings: ER-SDE, 25 steps, CFG 3, Temporal Score Rescaling and skip-layer guidance (layers 22, 24) on, int8 Qwen3.5-9B text encoder, seed 11.### All six test imagesThese are every image tested, not a selection. Each grid shows Full SFT (top left), Base (top right), this fix (bottom left) and Kijai's 21β49 LoRA at β0.5 (bottom right), with the banding score and SFT similarity in each label. This fix keeps more of the SFT image every time; on banding alone, Kijai's LoRA scores lower on the fjord sky and the goose at 1024.<details><summary><b>Perfume bottle</b>: fix 9.1 vs Kijai 16.1</summary></details><details><summary><b>Fjord sky</b>: Kijai lower, 30.8 vs fix 32.7. Neither fixes this one; only Base is clean.</summary></details><details><summary><b>Goose, 768Γ1024</b>: fix 16.0 vs Kijai 23.0</summary></details><details><summary><b>Fog forest</b>: fix 14.4 vs Kijai 32.8</summary></details><details><summary><b>Oil still life</b>: fix 17.5 vs Kijai 21.3</summary></details><details><summary><b>Goose, 1024Γ1024</b>: Kijai lower, 15.9 vs fix 19.4</summary></details>8 unmodified lines</details>## Related: Kijai's MOSS-Image LoRAs[Kijai/MOSS-image_experimental](https://huggingface.co/Kijai/MOSS-image_experimental) has the SFT-difference LoRAs this work builds on, and his README has the original β0.5 banding recipe:- [`moss_image_sft_lora_blocks_21_to_49_rank_512_bf16`](https://huggingface.co/Kijai/MOSS-image_experimental/blob/main/loras/moss_image_sft_lora_blocks_21_to_49_rank_512_bf16.safetensors): his banding fix, applied to SFT at β0.5. It's the "Kijai" column below.- [`moss_image_sft_lora_rank_256_bf16`](https://huggingface.co/Kijai/MOSS-image_experimental/blob/main/loras/moss_image_sft_lora_rank_256_bf16.safetensors) and [`moss_image_sft_lora_rank_512_bf16`](https://huggingface.co/Kijai/MOSS-image_experimental/blob/main/loras/moss_image_sft_lora_rank_512_bf16.safetensors): the full SFT difference as a LoRA, for applying the SFT look to the Base model at whatever strength you want. At +1 the rank-512 version reproduces SFT's banding as well (41.5 vs 41.0 on the goose bench).His fix and this one take different routes. His subtracts half of the SFT change across layers 3, 4 and 21β41; this one fully reverts only layers 37β41. Pick by eye: the grids below show both on every test image.## How the layers were found1. **Block swaps with exact weights.** Copying the Base model's weights into SFT for one block range at a time showed that removing SFT's changes in layers 21β41 fixes the banding, while reverting layers 0β20 alone does not. Within that range, attention (qkv, o) and MLP (ffn_up_gate, ffn_down) weights all contribute; the norms don't.2. **An activation probe.** Running the residual stream at every layer and step through the model's own output head showed the stripe frequency. In SFT it starts in the top layers (37β41) and then builds up across sampling steps, because each step's striped output feeds the next.3. **Bakeoff.** Reverting layers 37β41 for every step was the best trade-off across five prompts. It removed more banding than a late-step-only revert and changed the image less than Kijai's LoRA.*The stripe frequency inside the model, by layer (vertical) and sampling step (horizontal). In Full SFT (left) it builds up from about step 7 and spreads through every layer; it never starts with the fix or in Base.*The full write-up, with the ablation charts, probe figures, step-window tests, open questions and the tools to reproduce it all, is in **[ANALYSIS.md](ANALYSIS.md)**.## Limitations- **Resolution matters.** Banding is much stronger at smaller widths. At 768 px wide even this fix leaves some; in our tests SFT barely banded at 1280 px and above.- **Some images still band at low resolution.** On the fjord sky at 768 px wide, the main fix leaves faint stripes; the Quality+ preset (layers 32β41) cleans it much better. At 1024 px the main fix cleans it fully.- **Small test set.** Six images, mostly one seed, with the sampler settings above. Seeds swing the banding score a lot, so treat small differences in the table as noise.- **Not pixel-identical to an exact layer swap.** ComfyUI's LoRA loader rounds the merged weights slightly differently, which changes fine details the way a nearby seed would. On average it scores the same.- **ComfyUI format.** The file uses ComfyUI's full-difference (`.diff`) LoRA keys and has only been tested in ComfyUI.## Files| File | Size | Contents ||---|---|---|| `moss_image_sft_banding_fix_L37-41_bf16.safetensors` | 1.13 GB | The banding fix: Base minus SFT weights for layers 37β41 (40 tensors, bf16, full rank) || `moss_image_sft_banding_fix_L32-36_extra_bf16.safetensors` | 1.13 GB | Optional extra fix for layers 32β36; stack it with the main fix for the Quality+ preset || `moss_image_sft_banding_fix_L37-41_bf16_splitqkv.safetensors` | 1.13 GB | The main fix with q/k/v split, for the split model (rapid-moss workflow) || `split_qkv/moss_image_sft_bf16_split_qkv.safetensors` | 10.2 GB | The official MOSS-Image-SFT transformer as one file with q/k/v separate (rapid-moss workflow only) || `workflows/*.json` | | The two preset workflows; `*_api.json` are API-format copies for scripting |8 unmodified lines- [OpenMOSS](https://huggingface.co/OpenMOSS-Team) for MOSS-Image Base and SFT (Apache-2.0), and [Comfy-Org](https://huggingface.co/Comfy-Org/MOSS-Image) for the ComfyUI repack.- [lodestones](https://huggingface.co/lodestones/MOSS-Image-SFT-8-steps-dmd) and [darask0](https://huggingface.co/darask0/MOSS-Image_4-step_adapter_lora) for the 8-step DMD and 4-step adapters used in the speed and Turbo presets.- [Kijai](https://huggingface.co/Kijai/MOSS-image_experimental) for the SFT-difference LoRAs, and a big thanks for pointing me in the right direction: his note that the SFT causes the banding in the later blocks, fixable with negative strength, is where this investigation started.2 unmodified lines3456789101 unmodified line121314151617181920212223242526272829307 unmodified lines38394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571584 unmodified lines1631641651661671681691706 unmodified lines1771781791801811821831843 unmodified lines1881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272288 unmodified lines2372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672688 unmodified lines2772782792802 unmodified linesbase_model:- OpenMOSS-Team/MOSS-Image-SFT- OpenMOSS-Team/MOSS-Image-Basebase_model_relation: adapterpipeline_tag: text-to-imagetags:- comfyui- lora1 unmodified line- text-to-image---# MOSS-Image SFT DeBandThe MOSS-Image **SFT** model often draws faint, evenly spaced **vertical color stripes** across smooth areas like skies, fog, backdrops and walls. This repo has two **banding-fix LoRAs** that remove them while keeping the image close to what SFT would have made, plus **preset workflows** that pair the fix with community speed LoRAs for 10β14 step (or 4β8 step) generation.## TL;DR1. Download the main fix, [`moss_image_sft_banding_fix_L37-41_bf16.safetensors`](https://huggingface.co/MATLOWAI/MOSS-Image-SFT-DeBand/resolve/main/moss_image_sft_banding_fix_L37-41_bf16.safetensors), into `ComfyUI/models/loras/`.2. In your MOSS-Image workflow, add **LoraLoaderModelOnly** after the SFT model (`moss_image_sft_bf16.safetensors` from [Comfy-Org/MOSS-Image](https://huggingface.co/Comfy-Org/MOSS-Image)) and set it to **1.0**. No custom nodes needed.3. Still seeing stripes? That happens most on smooth skies and gradients, and on wide images (1536 px and up). Add a second LoraLoaderModelOnly with the extra fix, [`moss_image_sft_banding_fix_L32-36_extra_bf16.safetensors`](https://huggingface.co/MATLOWAI/MOSS-Image-SFT-DeBand/resolve/main/moss_image_sft_banding_fix_L32-36_extra_bf16.safetensors), also at **1.0**. That's the **Quality+** preset.4. **Or** drag [`workflows/moss_banding_fix_presets.json`](workflows/moss_banding_fix_presets.json) into ComfyUI and pick a preset: **Quality** (25 steps), **Quality+** (both fixes), **Balanced** (14 steps), **Fast** / **Fast alt** (10 steps). The files each preset needs are listed [below](#preset-workflows-in-detail).5. Want 4β8 steps? [`workflows/moss_banding_fix_presets_rapid_moss.json`](workflows/moss_banding_fix_presets_rapid_moss.json) adds the **Turbo** presets. It needs two custom nodes; see the setup below.How it works: each LoRA is an exact weight difference that turns some of SFT's transformer layers back into the Base model's weights. The main fix covers the **last five layers (37β41)**, the extra fix covers **32β36**, and everything else is untouched. How those layers were found is [further down](#how-the-layers-were-found), with the full write-up in [ANALYSIS.md](ANALYSIS.md).## Examples7 unmodified lines</details>**Every preset on the five test prompts:** the exact output of the preset workflow at 768Γ1024, seed 11. Each label gives the banding score (about 1.0 = clean) and how close the image stays to plain SFT. The color view shows the stripes.<details><summary><b>Fjord sky</b>: the hardest one; only Quality+ fully cleans the sky</summary></details><details><summary><b>Goose at the checkout</b></summary></details><details><summary><b>Oil still life</b></summary></details><details><summary><b>Perfume bottle</b></summary></details>**The workflow's default prompt:** a cozy anime illustration of a woman in a penguin sweater with a penguin mug, on a window seat over an icy bay. This is what the preset workflows produce out of the box (1024Γ1024, every preset). This scene doesn't band much even on plain SFT, so it shows the look and speed of each preset.**A busy cinematic scene, 1280Γ720:** text, crowds, reflections, steam and neon hold up with the fix and with the speed LoRAs.<details><summary><b>More scenes</b>: ballroom, viking ship, anime pier, and a layout check</summary>These were made while tuning the presets, so some speed-LoRA strengths and step counts differ from the final presets. Every label names the exact setup.**Layout check:** the prompt places four objects in four boxes, plus a card reading "LAYOUT OK". Every setup put all four objects in their boxes and got the text right, so the fix and speed LoRAs don't hurt prompt following.</details>## ResultsSame prompt, seed (11) and settings in every column, 768Γ1024. Each cell is **banding Β· SFT similarity**.- **Banding** measures the stripe at the exact width SFT draws it, relative to nearby patterns. About **1.0 means no stripe**; plain SFT scores about 2. Fine grain and real vertical patterns (pleats, tree trunks) also raise it, so compare within a column.- **SFT similarity** is SSIM against the plain SFT image. Higher keeps more of the SFT look.| Setup | Fog forest | Fjord sky | Goose | Oil still life | Perfume bottle | **Mean** ||---|---|---|---|---|---|---|| Off (plain SFT) | 2.33 | 2.21 | 2.16 | 1.96 | 1.53 | **2.04** || Quality | 1.28 Β· 86% | 1.74 Β· 90% | 1.21 Β· 69% | 1.43 Β· 89% | 1.29 Β· 93% | **1.39 Β· 86%** || Quality+ | 1.10 Β· 74% | 0.93 Β· 84% | 1.28 Β· 54% | 1.17 Β· 80% | 1.00 Β· 88% | **1.09 Β· 76%** || Balanced | 1.22 Β· 62% | 1.42 Β· 82% | 1.00 Β· 45% | 1.09 Β· 64% | 1.53 Β· 80% | **1.25 Β· 66%** || Fast | 1.26 Β· 58% | 1.29 Β· 77% | 1.05 Β· 38% | 0.91 Β· 58% | 1.18 Β· 81% | **1.14 Β· 62%** || Fast alt | 1.22 Β· 57% | 1.49 Β· 78% | 1.00 Β· 39% | 0.95 Β· 57% | 1.21 Β· 81% | **1.17 Β· 62%** || Turbo | 1.04 Β· 42% | 1.30 Β· 44% | 1.59 Β· 32% | 1.15 Β· 31% | 1.29 Β· 73% | **1.27 Β· 45%** || Turbo max | 1.17 Β· 32% | 2.41 Β· 65% | 2.15 Β· 30% | 1.27 Β· 23% | 0.99 Β· 71% | **1.60 Β· 44%** || Kijai 21β49 @ β0.5 | 1.70 Β· 81% | 1.74 Β· 88% | 1.24 Β· 51% | 1.46 Β· 85% | 1.32 Β· 91% | **1.49 Β· 79%** || Base model | 1.13 Β· 59% | 1.19 Β· 78% | 1.17 Β· 45% | 0.92 Β· 61% | 1.20 Β· 82% | **1.12 Β· 65%** |How to read it:- **Quality** keeps the most of SFT (86%) and removes most of the banding. **Quality+** is the cleanest (about as clean as Base) but changes the image more.- **Balanced / Fast / Fast alt** are clean too, but at 10β14 steps they change more of the image.- **Turbo / Turbo max** redraw the scene (30β70% similarity). Turbo max's high scores on the fjord and goose come mostly from fine grain the 4-step adapter adds, not SFT's stripes; check its color views above.Settings: ER-SDE, CFG 3, Temporal Score Rescaling and skip-layer guidance (layers 22, 24) on, int8 Qwen3.5-9B text encoder. These are the preset workflow's own settings; the Turbo presets use the rapid-moss sampler.### Image size: when does banding go away?It doesn't, really. SFT draws fine stripes at 768 and 1024 px wide. At **1536 and 2048 px wide it draws wider, wavy stripes instead**. These are center crops of the color view at 1:1 pixels, height 1024, seed 11:<details><summary><b>Fog forest across widths</b></summary></details>| Width | Plain SFT | Quality | Quality+ ||---|---|---|---|| 768 | strong stripes | fainter; still visible on the fjord sky | clean || 1024 | strong stripes | faint | clean || 1280 | clean on both prompts | clean | clean || 1536 | wide wavy stripes | fog clean; fjord sky still striped | fog clean; fjord sky very faint || 2048 | wide wavy stripes | fog clean; faint waves on the fjord sky | clean |So: **use Quality+ for wide images or big smooth skies.** 1280 wide was clean for every setup here, but that's two prompts and one seed. The wavy stripes at 1536+ are wider than the ones the banding score looks for, so this table is by eye.## Preset workflows in detailTwo ready-made ComfyUI workflows are in [`workflows/`](workflows). Pick a **Preset** from the dropdown at the top; it sets every LoRA strength and the step count for you.| Preset | What it does | Steps ||---|---|---|| **Quality** | SFT + main banding fix (layers 37β41) | 25 || **Quality+** | SFT + main fix + extra fix (layers 32β36). Cleanest, slightly different look | 25 || **Balanced** | main fix + lodestones 8-step DMD LoRA at 0.28 | 14 || **Fast** | main fix + lodestones 8-step DMD LoRA at 0.35 | 10 || **Fast alt** | main fix + darask0 4-step LoRA at 0.35 | 10 || **Off** | plain SFT, to compare | 25 || **Turbo** *(rapid-moss workflow only)* | lodestones 8-step adapter + main fix, its own sampler | 8 || **Turbo max** *(rapid-moss workflow only)* | darask0 4-step adapter + main fix, its own sampler (about 3 s per image on an RTX 5090) | 4 |The speed and Turbo presets use only the main fix. For wide images with smooth skies, Quality+ is the safe choice.### `moss_banding_fix_presets.json`: stock ComfyUI, no custom nodes4 unmodified lines| `moss_image_sft_bf16.safetensors` | `diffusion_models` | [Comfy-Org](https://huggingface.co/Comfy-Org/MOSS-Image/resolve/main/diffusion_models/moss_image_sft_bf16.safetensors) || `qwen3.5_9b_int8_convrot.safetensors` | `text_encoders` | [Comfy-Org](https://huggingface.co/Comfy-Org/MOSS-Image/resolve/main/text_encoders/qwen3.5_9b_int8_convrot.safetensors) || `flux2-vae.safetensors` | `vae` | [Comfy-Org](https://huggingface.co/Comfy-Org/MOSS-Image/resolve/main/vae/flux2-vae.safetensors) || `moss_image_sft_banding_fix_L37-41_bf16.safetensors` | `loras` | [this repo](https://huggingface.co/MATLOWAI/MOSS-Image-SFT-DeBand/resolve/main/moss_image_sft_banding_fix_L37-41_bf16.safetensors) || `moss_image_sft_banding_fix_L32-36_extra_bf16.safetensors` | `loras` | [this repo](https://huggingface.co/MATLOWAI/MOSS-Image-SFT-DeBand/resolve/main/moss_image_sft_banding_fix_L32-36_extra_bf16.safetensors) || `lodestones_moss_sft_8step_dmd_lora_latest.safetensors` | `loras` | [`lora_latest.safetensors` from lodestones](https://huggingface.co/lodestones/MOSS-Image-SFT-8-steps-dmd/resolve/main/lora_latest.safetensors), **renamed** || `darask0_moss_sft_4step_dmad_lora.safetensors` | `loras` | [`lora.safetensors` from darask0](https://huggingface.co/darask0/MOSS-Image_4-step_adapter_lora/resolve/main/lora.safetensors), **renamed** |6 unmodified lines- **Custom nodes**, each folder copied into `ComfyUI/custom_nodes/`:- OpenMOSS's [`moss-image`](https://github.com/OpenMOSS/MOSS-Image/tree/main/comfyui/moss-image) (the `comfyui/moss-image` folder of their GitHub repo);- darask0's [`rapid-moss`](https://huggingface.co/darask0/MOSS-Image_4-step_adapter_lora/tree/main/comfyui/rapid-moss) (the `comfyui/rapid-moss` folder of their Hugging Face repo).- **[`moss_image_sft_bf16_split_qkv.safetensors`](https://huggingface.co/MATLOWAI/MOSS-Image-SFT-DeBand/resolve/main/split_qkv/moss_image_sft_bf16_split_qkv.safetensors)** (10.2 GB, this repo) β `models/diffusion_models`. The rapid-moss adapters patch q, k and v separately, so they need the SFT model with q/k/v stored apart. This file is the official [OpenMOSS-Team/MOSS-Image-SFT](https://huggingface.co/OpenMOSS-Team/MOSS-Image-SFT) transformer as a single file, with the same 463 tensors. The Comfy-Org file fuses q/k/v; with it, the rapid-moss adapters produce noise or a black image without raising an error.- **[`moss_image_sft_banding_fix_L37-41_bf16_splitqkv.safetensors`](https://huggingface.co/MATLOWAI/MOSS-Image-SFT-DeBand/resolve/main/moss_image_sft_banding_fix_L37-41_bf16_splitqkv.safetensors)** (this repo) β `models/loras`. The same main fix, laid out for the split model.- **Adapter folders**, each holding three files with exactly these names:| Folder | `lora.safetensors` | `time_embedding.safetensors` | `dataspace.safetensors` |3 unmodified linesOnly the branch for the chosen preset runs, so the normal presets don't load the split model.## Compared with Kijai's LoRA and the Base model[Kijai/MOSS-image_experimental](https://huggingface.co/Kijai/MOSS-image_experimental) has the SFT-difference LoRAs this work builds on, and its README has the original β0.5 banding recipe:- [`moss_image_sft_lora_blocks_21_to_49_rank_512_bf16`](https://huggingface.co/Kijai/MOSS-image_experimental/blob/main/loras/moss_image_sft_lora_blocks_21_to_49_rank_512_bf16.safetensors): Kijai's banding fix, applied to SFT at β0.5. It's the "Kijai 21β49 @ β0.5" row in the [results table](#results) and the bottom-right image in the grids below.- [`moss_image_sft_lora_rank_256_bf16`](https://huggingface.co/Kijai/MOSS-image_experimental/blob/main/loras/moss_image_sft_lora_rank_256_bf16.safetensors) and [`moss_image_sft_lora_rank_512_bf16`](https://huggingface.co/Kijai/MOSS-image_experimental/blob/main/loras/moss_image_sft_lora_rank_512_bf16.safetensors): the full SFT difference as a LoRA, for applying the SFT look to the Base model at whatever strength you want. At +1 the rank-512 version reproduces SFT's banding as well.The two fixes take different routes. Kijai's subtracts half of the SFT change across layers 3, 4 and 21β41; the main fix here fully reverts only layers 37β41. On these images the main fix bands less or the same and keeps more of the SFT image every time. Pick by eye: each grid shows Full SFT (top left), Base (top right), the main fix (bottom left) and Kijai's LoRA (bottom right).<details><summary><b>Perfume bottle</b>: fix 1.29 vs Kijai 1.32</summary></details><details><summary><b>Fjord sky</b>: tie, 1.74 each. Neither cleans this sky; Base and Quality+ do.</summary></details><details><summary><b>Goose, 768Γ1024</b>: fix 1.21 vs Kijai 1.24</summary></details><details><summary><b>Fog forest</b>: fix 1.28 vs Kijai 1.70</summary></details><details><summary><b>Oil still life</b>: fix 1.43 vs Kijai 1.46</summary></details><details><summary><b>Goose, 1024Γ1024</b>: fix 1.07 vs Kijai 1.24</summary></details>8 unmodified lines</details>## How the layers were found1. **Block swaps with exact weights.** Copying the Base model's weights into SFT for one block range at a time showed that removing SFT's changes in layers 21β41 fixes the banding, while reverting layers 0β20 alone does not. Within that range, attention (qkv, o) and MLP (ffn_up_gate, ffn_down) weights all contribute; the norms don't.2. **An activation probe.** Running the residual stream at every layer and step through the model's own output head showed the stripe frequency. In SFT it starts in the top layers (37β41) and then builds up across sampling steps, because each step's striped output feeds the next.3. **Bakeoff.** Reverting layers 37β41 for every step was the best trade-off across five prompts. It removed more banding than a late-step-only revert and changed the image less than Kijai's LoRA. Adding 32β36 cleans the stubborn cases (the fjord sky, wide images) at the cost of more change, so it ships as the separate extra fix.*The stripe frequency inside the model, by layer (vertical) and sampling step (horizontal). In Full SFT (left) it builds up from about step 7 and spreads through every layer; it never starts with the fix or in Base.*The full write-up, with the ablation charts, probe figures, step-window tests, open questions and the tools to reproduce it all, is in **[ANALYSIS.md](ANALYSIS.md)**. It uses an earlier banding score with a different scale (plain SFT about 20β120, lower is better); the ordering of setups is the same.## Limitations- **Image size matters.** At 768 px wide the main fix still leaves faint stripes on smooth skies, and at 1536 px and up SFT switches to wider stripes the main fix doesn't always catch. Quality+ handled every size tested. See [Image size](#image-size-when-does-banding-go-away).- **Small test set.** Five prompts at one seed for the presets, two prompts for the size sweep. Seeds swing the banding score a lot, so treat small differences in the table as noise.- **The banding score is a guide, not ground truth.** Fine grain and real vertical patterns raise it. When in doubt, check the color views.- **Not pixel-identical to an exact layer swap.** ComfyUI's LoRA loader rounds the merged weights slightly differently, which changes fine details the way a nearby seed would. On average it scores the same.- **ComfyUI format.** The files use ComfyUI's full-difference (`.diff`) LoRA keys and have only been tested in ComfyUI.## Files| File | Size | Contents ||---|---|---|| `moss_image_sft_banding_fix_L37-41_bf16.safetensors` | 1.13 GB | Main fix: Base minus SFT weights for layers 37β41 (40 tensors, bf16, full rank) || `moss_image_sft_banding_fix_L32-36_extra_bf16.safetensors` | 1.13 GB | Extra fix for layers 32β36; stack it with the main fix for Quality+ || `moss_image_sft_banding_fix_L37-41_bf16_splitqkv.safetensors` | 1.13 GB | The main fix with q/k/v split, for the split model (rapid-moss workflow) || `split_qkv/moss_image_sft_bf16_split_qkv.safetensors` | 10.2 GB | The official MOSS-Image-SFT transformer as one file with q/k/v separate (rapid-moss workflow only) || `workflows/*.json` | | The two preset workflows; `*_api.json` are API-format copies for scripting |8 unmodified lines- [OpenMOSS](https://huggingface.co/OpenMOSS-Team) for MOSS-Image Base and SFT (Apache-2.0), and [Comfy-Org](https://huggingface.co/Comfy-Org/MOSS-Image) for the ComfyUI repack.- [lodestones](https://huggingface.co/lodestones/MOSS-Image-SFT-8-steps-dmd) and [darask0](https://huggingface.co/darask0/MOSS-Image_4-step_adapter_lora) for the 8-step DMD and 4-step adapters used in the speed and Turbo presets.- [Kijai](https://huggingface.co/Kijai/MOSS-image_experimental) for the SFT-difference LoRAs, and a big thanks for pointing me in the right direction: Kijai's note that the SFT causes the banding in the later blocks, fixable with negative strength, is where this investigation started.
.gitattributes+16
README.md+136-62
images/anime_pier_setups.jpgAdded

Large File Pointer Details
- SHA256: 5ce77fede1fa1c9d1c938cc39b98471419f1c463dee415eb5c1a1c6f3205d6cb
- Pointer size: 132 Bytes
- Size of remote file: 2.54 MB
images/cinematic_ballroom_setups.jpgAdded

Large File Pointer Details
- SHA256: f1321a49bee80056ef8469a227ba68239e3c5eafd040d1ea8ea019a7313979a2
- Pointer size: 132 Bytes
- Size of remote file: 3.41 MB
images/cinematic_viking_setups.jpgAdded

Large File Pointer Details
- SHA256: 4527f0b5d80663108f231ae47ca1e90094fca4b92975d797a47cf4c2b9dbc4fd
- Pointer size: 132 Bytes
- Size of remote file: 3.56 MB
images/fjord_sky_768x1024_color.png

Large File Pointer Details
- SHA256: 3fb42bb2c6f2e62ba367661cbd9c500acdbc72b52f32ca21ed98a52061859997
- Pointer size: 132 Bytes
- Size of remote file: 3.19 MB

Large File Pointer Details
- SHA256: 44eb05af72f04b71eaf65725be09cdce9bcc19a2a27beeacb4a774cf31393a35
- Pointer size: 132 Bytes
- Size of remote file: 3.19 MB
images/fjord_sky_768x1024_photo.png

Large File Pointer Details
- SHA256: 27fdbdb0291dfc8c7dc8a96dd3a57f00aa586c29abe2000bcd8f7f2469c253ee
- Pointer size: 132 Bytes
- Size of remote file: 3.3 MB

Large File Pointer Details
- SHA256: cb5f83805969357f32bae265b75eb0ebf569369143aafa50a32329144415999f
- Pointer size: 132 Bytes
- Size of remote file: 3.29 MB
images/fog_forest_768x1024_color.png

Large File Pointer Details
- SHA256: 1046ee8e927eb6e2b596943408f659ac13dcfbb40bf872450b0cb51495571595
- Pointer size: 132 Bytes
- Size of remote file: 4.25 MB

Large File Pointer Details
- SHA256: cff9b0530c4ef8cf2bbb918fd60614604f9daacbb163d886469aede752937545
- Pointer size: 132 Bytes
- Size of remote file: 4.25 MB
images/fog_forest_768x1024_photo.png

Large File Pointer Details
- SHA256: cc6b560e988fa337e490f4fde8d681acb5870cf8c8da17b4e3c0162cdbb0eba7
- Pointer size: 132 Bytes
- Size of remote file: 4.79 MB

Large File Pointer Details
- SHA256: 5b67fa4d821e80fedc0e495cfa117f465d07e075191cfd10c3359e7dee521163
- Pointer size: 132 Bytes
- Size of remote file: 4.77 MB
images/goose_1024_color.png

Large File Pointer Details
- SHA256: f0e4da57c91edf1900649bee235947c2c62946416952d2ecfd9f2503f9b9639b
- Pointer size: 132 Bytes
- Size of remote file: 5.79 MB

Large File Pointer Details
- SHA256: d4d2ef94fec1b756725fcb22243d2508b87bb749842ef3516d743d90432e2ec2
- Pointer size: 132 Bytes
- Size of remote file: 5.78 MB
images/goose_1024_photo.png

Large File Pointer Details
- SHA256: e52b488a6b553b1fda4576115f3749683d207d56624b47db1e310bd7ceae9c75
- Pointer size: 132 Bytes
- Size of remote file: 6.27 MB

Large File Pointer Details
- SHA256: 328ce0565a3b6b485ede5cf14255da631cd47f0b85e5a5d9fd27c190f9e5b81d
- Pointer size: 132 Bytes
- Size of remote file: 6.26 MB
images/goose_768x1024_color.png

Large File Pointer Details
- SHA256: 82014936d80655674c5ae093633b9e9456dd71d9d9b7a1e20861d6425af9fb07
- Pointer size: 132 Bytes
- Size of remote file: 4.51 MB

Large File Pointer Details
- SHA256: 2a20cbee5137a9faed890f87590b8790b07454cd0ecf59327ecfbd970cd70d21
- Pointer size: 132 Bytes
- Size of remote file: 4.5 MB
images/goose_768x1024_photo.png

Large File Pointer Details
- SHA256: 16c5d34594f50626d0e266db7fd259b0db65130fbd01719e509a1c2ae08e298a
- Pointer size: 132 Bytes
- Size of remote file: 4.67 MB

Large File Pointer Details
- SHA256: 38f90b2b5331936e817ee94248940568eef41121af482723cdcf424d52dd87bc
- Pointer size: 132 Bytes
- Size of remote file: 4.65 MB
images/layout_check_setups.jpgAdded

Large File Pointer Details
- SHA256: e2c029dbdb82a933de95c73ada949aa7e9b85ce14d46a5b03ca926b46ad8caa7
- Pointer size: 132 Bytes
- Size of remote file: 1.03 MB
images/oil_still_life_768x1024_color.png

Large File Pointer Details
- SHA256: 44adc06855143996bd438660223187cf8abf6bf2fad20a1da852995061bbb927
- Pointer size: 132 Bytes
- Size of remote file: 4.24 MB

Large File Pointer Details
- SHA256: b281dfdf61d1dcbba4e9dc62ad66a2dafc6e76997fd4ec686e867dcfdba66345
- Pointer size: 132 Bytes
- Size of remote file: 4.23 MB
images/oil_still_life_768x1024_photo.png

Large File Pointer Details
- SHA256: 5c736b2ea2619af1b28fd99a1065e4e3bd726201f91967f3047b42eccb9b4e68
- Pointer size: 132 Bytes
- Size of remote file: 5.26 MB

Large File Pointer Details
- SHA256: dfc06d4b59a3945864aeb3d5994a3d1f0a9a401c47736e144b8704397eb74ce4
- Pointer size: 132 Bytes
- Size of remote file: 5.24 MB
images/presets_fjord_sky_color.jpgAdded

Large File Pointer Details
- SHA256: b80ec2ee5ba4e0538473c43656b173b15b8965c46f4734fc29199f0a52a10289
- Pointer size: 132 Bytes
- Size of remote file: 1.22 MB
images/presets_fjord_sky_photo.jpgAdded

Large File Pointer Details
- SHA256: 4ca3d4786e9e91dc56dc4ff6a92abf7797d1169c0fc6cc54d77c8c4e309db463
- Pointer size: 132 Bytes
- Size of remote file: 1.01 MB
images/presets_fog_forest_color.jpgAdded

Large File Pointer Details
- SHA256: a4245e3deff5d2e1f87661b570ea7597c0f22134c631453fefe25fd0cf6154b6
- Pointer size: 132 Bytes
- Size of remote file: 1.06 MB
images/presets_fog_forest_photo.jpgAdded

Large File Pointer Details
- SHA256: ce8b4f4dcb7cf0fd7c3cd869b1418452a04d23ce7c9bbb385ff122ede800777c
- Pointer size: 132 Bytes
- Size of remote file: 1.61 MB
images/presets_goose_color.jpgAdded

Large File Pointer Details
- SHA256: 0cc1cfc5fb6cba4d5ff20779665edd18ca10380edbb840258b894965457ed811
- Pointer size: 132 Bytes
- Size of remote file: 1.5 MB
images/presets_goose_photo.jpgAdded

Large File Pointer Details
- SHA256: 305fbf7eb3e60d037eaacf39f8372c3ee24eb01abf06625eaa2092a1dad60329
- Pointer size: 132 Bytes
- Size of remote file: 1.42 MB
images/presets_oil_still_life_color.jpgAdded

Large File Pointer Details
- SHA256: 620e806dd8271bd6e4f9ff2efdf897300719912cd00bb581d3c4c3f752014c16
- Pointer size: 132 Bytes
- Size of remote file: 1.42 MB
images/presets_oil_still_life_photo.jpgAdded

Large File Pointer Details
- SHA256: 351344d70a53a414d9bdeb4decd6023a8b6b0376cfb87b99daf9feccef865f15
- Pointer size: 132 Bytes
- Size of remote file: 1.85 MB
images/presets_product_glass_color.jpgAdded

Large File Pointer Details
- SHA256: 106ebb661826bd9f6ca27e0edd8952cd671967841942c9c3a468d97981681966
- Pointer size: 132 Bytes
- Size of remote file: 1.05 MB
images/presets_product_glass_photo.jpgAdded

Large File Pointer Details
- SHA256: 8f27c9651ac95a9c0babf3eacd9dbc5a61ffe8c338aa0ae018ebd4092bab8dee
- Pointer size: 131 Bytes
- Size of remote file: 863 kB
images/product_glass_768x1024_color.png

Large File Pointer Details
- SHA256: f16abe8da6214ee4d99c5f914ef3e0f04c52261861184ae009469a11e8d8f1e2
- Pointer size: 132 Bytes
- Size of remote file: 3.4 MB

Large File Pointer Details
- SHA256: 0ed3fef777198124761e692bc07c50d9f403d9b8e162488ca65c7af192c01a8c
- Pointer size: 132 Bytes
- Size of remote file: 3.4 MB
images/product_glass_768x1024_photo.png

Large File Pointer Details
- SHA256: 807ab017843ae5e35e588c264d4f7a87d50223dd505afd9b05505468610e807e
- Pointer size: 132 Bytes
- Size of remote file: 3.01 MB

Large File Pointer Details
- SHA256: 0988c7e86d95a660975ec1b6e7c3945b81320af356dbf4d5abe095b0cbd112c3
- Pointer size: 132 Bytes
- Size of remote file: 3.01 MB
images/widthsweep_fjord_sky.jpgAdded

Large File Pointer Details
- SHA256: 2bb1888f177f5a8377eb29870314f084e2f8fcc1fb1deb76fc8eb5a5f2e438ba
- Pointer size: 131 Bytes
- Size of remote file: 388 kB
images/widthsweep_fog_forest.jpgAdded

Large File Pointer Details
- SHA256: 9c25bbf4398b803c906b8903ccf3de727f39a18c52ce117e902c01d1e86a16fa
- Pointer size: 131 Bytes
- Size of remote file: 364 kB