This repository contains a Q4_K GGUF conversion of the RORem-mixed SDXL inpainting UNet for stable-diffusion.cpp.
RORem is an object-removal/inpainting model from RORem: Training a Robust Object Remover with Human-in-the-Loop. The mixed-resolution checkpoint was trained for both 512x512 and 1024x1024 inputs.
| File | Description |
|---|---|
rorem-mixed-unet-q4_K.gguf | RORem-mixed UNet in GGML Q4_K format (1.885 GiB) |
sdxl-version-marker.safetensors | Tiny metadata-only file used to identify the pipeline as SDXL Inpaint |
This is not a complete SDXL pipeline. It does not include the VAE, CLIP-L, or CLIP-G weights. Use those components from diffusers/stable-diffusion-xl-1.0-inpainting-0.1.
The model was converted and tested with the official CUDA prebuilt from stable-diffusion.cpp release master-782-b290693.
sd-cli \
--model sdxl-version-marker.safetensors \
--diffusion-model rorem-mixed-unet-q4_K.gguf \
--vae /path/to/sdxl-inpainting/vae/diffusion_pytorch_model.fp16.safetensors \
--clip_l /path/to/sdxl-inpainting/text_encoder/model.fp16.safetensors \
--clip_g /path/to/sdxl-inpainting/text_encoder_2/model.fp16.safetensors \
--init-img input.png \
--mask mask.png \
--prompt "clean manga illustration, crisp black line art, flat colors, seamless original background, clean white speech bubble, no text" \
--negative-prompt "text, letters, words, symbols, watermark, signature, blurry, smudged, dirty, gray artifacts, extra objects, photorealistic" \
--width 512 \
--height 512 \
--steps 30 \
--cfg-scale 8 \
--strength 0.999 \
--sampling-method euler \
--scheduler discrete \
--fa \
--output output.png
The white portion of the mask is regenerated. For manga translation, dilating the text or SFX mask before inference helps remove outlines and antialiasing remnants.
Single 512x512 manga inpainting crop, 30 Euler steps, fixed seed, RTX 5090, stable-diffusion.cpp CUDA build b290693:
| UNet format | Masked MAE vs FP16 | Masked PSNR vs FP16 | Sampling | End-to-end | Loaded parameter VRAM |
|---|---|---|---|---|---|
| Q4_K | 1.1033 | 43.741 dB | 4.06 s | 6.383 s | 3657.61 MB |
| Q4_0 | 1.8081 | 41.193 dB | 4.03 s | 6.348 s | 3573.38 MB |
| FP16 | reference | reference | 5.15 s | 7.536 s | 6624.13 MB |
This is one local sample, not a comprehensive quality benchmark. Q4_K was effectively tied with Q4_0 in speed while producing an output closer to the FP16 reference.
diffusers/stable-diffusion-xl-1.0-inpainting-0.1, licensed under CreativeML Open RAIL++-M.Users are responsible for complying with all applicable upstream licenses and usage restrictions.
@article{li2024RORem,
title={RORem: Training a Robust Object Remover with Human-in-the-Loop},
author={Ruibin Li and Tao, Yang and Song, Guo and Lei, Zhang},
year={2025},
booktitle={IEEE/CVF Conference on Computer Vision and Pattern Recognition}
}
2 commits
This repository contains a Q4_K GGUF conversion of the RORem-mixed SDXL inpainting UNet for stable-diffusion.cpp.
RORem is an object-removal/inpainting model from RORem: Training a Robust Object Remover with Human-in-the-Loop. The mixed-resolution checkpoint was trained for both 512x512 and 1024x1024 inputs.
| File | Description |
|---|---|
rorem-mixed-unet-q4_K.gguf | RORem-mixed UNet in GGML Q4_K format (1.885 GiB) |
sdxl-version-marker.safetensors | Tiny metadata-only file used to identify the pipeline as SDXL Inpaint |
This is not a complete SDXL pipeline. It does not include the VAE, CLIP-L, or CLIP-G weights. Use those components from diffusers/stable-diffusion-xl-1.0-inpainting-0.1.
The model was converted and tested with the official CUDA prebuilt from stable-diffusion.cpp release master-782-b290693.
sd-cli \
--model sdxl-version-marker.safetensors \
--diffusion-model rorem-mixed-unet-q4_K.gguf \
--vae /path/to/sdxl-inpainting/vae/diffusion_pytorch_model.fp16.safetensors \
--clip_l /path/to/sdxl-inpainting/text_encoder/model.fp16.safetensors \
--clip_g /path/to/sdxl-inpainting/text_encoder_2/model.fp16.safetensors \
--init-img input.png \
--mask mask.png \
--prompt "clean manga illustration, crisp black line art, flat colors, seamless original background, clean white speech bubble, no text" \
--negative-prompt "text, letters, words, symbols, watermark, signature, blurry, smudged, dirty, gray artifacts, extra objects, photorealistic" \
--width 512 \
--height 512 \
--steps 30 \
--cfg-scale 8 \
--strength 0.999 \
--sampling-method euler \
--scheduler discrete \
--fa \
--output output.png
The white portion of the mask is regenerated. For manga translation, dilating the text or SFX mask before inference helps remove outlines and antialiasing remnants.
Single 512x512 manga inpainting crop, 30 Euler steps, fixed seed, RTX 5090, stable-diffusion.cpp CUDA build b290693:
| UNet format | Masked MAE vs FP16 | Masked PSNR vs FP16 | Sampling | End-to-end | Loaded parameter VRAM |
|---|---|---|---|---|---|
| Q4_K | 1.1033 | 43.741 dB | 4.06 s | 6.383 s | 3657.61 MB |
| Q4_0 | 1.8081 | 41.193 dB | 4.03 s | 6.348 s | 3573.38 MB |
| FP16 | reference | reference | 5.15 s | 7.536 s | 6624.13 MB |
This is one local sample, not a comprehensive quality benchmark. Q4_K was effectively tied with Q4_0 in speed while producing an output closer to the FP16 reference.
diffusers/stable-diffusion-xl-1.0-inpainting-0.1, licensed under CreativeML Open RAIL++-M.Users are responsible for complying with all applicable upstream licenses and usage restrictions.
@article{li2024RORem,
title={RORem: Training a Robust Object Remover with Human-in-the-Loop},
author={Ruibin Li and Tao, Yang and Song, Guo and Lei, Zhang},
year={2025},
booktitle={IEEE/CVF Conference on Computer Vision and Pattern Recognition}
}
2 commits