文件清单 线路:镜像(hf-mirror.com) · 切换
下载后放进对应的 ComfyUI 目录。models/ 指 ComfyUI 的模型根目录。
说明
BlockPruned MOSS-base 8-steps dmd2
作者:NerissG
This is a block pruned version of Lodestone's dmd2 turbo LoRA for MOSS-Image base. All credit for creating should goes to him. I noticed on some prompts a large shift in color towards a cool magenta, an increase in brightness, and a small reduction in texture compared to the base model. This is not a straight up fix, though it reduces the issues a fair bit, at the cost of undoing some of the distillation (this works better at 16 steps), you will have limbs and text errors on more seeds with this version.
After tinkering manually with some blocks and seeing that it improved the symptom somewhat. So I decided to run an ablation overnight by sampling ~100 images with the base model on different seed+prompts combinations with euler / cfg 3 / 30 steps, then comparing samples generated with euler / cfg1 / 8 steps. This was done by letting Opus control Optuna to compare different module combinations on metrics for composition (32×32 brightness layout, DINOv2 patch similarity), color (Lab color-distribution distance, brightness, contrast, saturation, and color cast), texture (VGG Gram matrices, frequency spectrum), and perceptual (LPIPS, DINOv2 global similarity). Everything is measured against the base at the same seed and scored relative to the full LoRA, so 1 = as much drift as the LoRA and 0 = same as the base. I then sampled the configurations that had the best result, and this is the one I prefer.
The edited blocks are listed below, their alpha values are simply set to 0 to deactivate them.
{"diffusion_model.layers.28.proj.ffn_up_gate":0,"diffusion_model.layers.29.proj.v":0,"diffusion_model.layers.29.proj.o":0,"diffusion_model.layers.29.proj.ffn_up_gate":0,"diffusion_model.layers.30.proj.ffn_up_gate":0,"diffusion_model.layers.31.proj.v":0,"diffusion_model.layers.31.proj.o":0,"diffusion_model.layers.31.proj.ffn_up_gate":0,"diffusion_model.layers.32.proj.ffn_up_gate":0,"diffusion_model.layers.33.proj.v":0,"diffusion_model.layers.33.proj.o":0,"diffusion_model.layers.33.proj.ffn_up_gate":0,"diffusion_model.layers.34.proj.v":0,"diffusion_model.layers.34.proj.o":0,"diffusion_model.layers.34.proj.ffn_up_gate":0,"diffusion_model.layers.35.proj.v":0,"diffusion_model.layers.35.proj.o":0,"diffusion_model.layers.35.proj.ffn_up_gate":0,"diffusion_model.layers.36.proj.ffn_up_gate":0,"diffusion_model.layers.37.proj.v":0,"diffusion_model.layers.37.proj.o":0,"diffusion_model.layers.37.proj.ffn_up_gate":0,"diffusion_model.layers.38.proj.ffn_up_gate":0,"diffusion_model.layers.40.proj.v":0,"diffusion_model.layers.40.proj.o":0}
