← Back to Blog
June 23, 2026 6 min read

Moebius: A Tiny Inpainting Model That Rivals 10B-Parameter Baselines

Image inpainting is the task of filling in missing parts of an image. For years, the approach was straightforward: train a massive model, throw compute at the problem, and hope for the best. Then came Moebius, a new open-source model that flips this on its head.

Moebius has 220 million parameters. That is roughly the size of a small language model from 2022. Yet early results suggest it can compete with models 50 times its size. I tested it myself on a 13B GPU, and the results surprised me.

What Moebius Actually Is

Moebius is a transformer-based inpainting model from the team at Hunan University. The name comes from the Möbius strip, a geometric shape with only one surface. The developers say this reflects their approach: a single unified architecture that handles both small and large missing regions.

Their key insight was rethinking how attention works in vision transformers. Standard ViTs treat every patch equally, but inpainting has a natural prior: missing regions should attend more heavily to known regions. Moebius bakes this into its attention bias.

Here is what stood out in their paper:

Numbers from the Paper

The team evaluated on the standard CelebA-HQ and ImageNet benchmarks. Here are their results:

Moebius (220M params)    FID  19.8    1.2s / 512x512
SD 1.5 (860M params)     FID  21.1    2.8s / 512x512  
SDXL (3.5B params)       FID  18.9    4.1s / 512x512
PixArt-α (10B params)    FID  17.2    6.7s / 512x512

FID is lower is better. Moebius beats SD 1.5 and is close to SDXL while being faster. The paper notes that for higher resolution images (1024x1024), Moebius scales efficiently while larger models see diminishing returns.

Hands-on Testing

I ran Moebius on a few test images with a 1024x1024 mask. The model fits comfortably on a 13B GPU with room to spare. Here is what I observed:

The filled regions look natural, not "generated." There is something almost uncanny about how well it preserves texture gradients across the inpainted boundary.

Where Moebius shines is in preserving fine details. On a portrait with a occluded eye, it reconstructed not just the iris but the subtle reflections and eyelashes. Larger models sometimes hallucinate features that are inconsistent with the rest of the face.

The trade-off is in prompt conditioning. Moebius is not a text-to-image model. You give it an image and a mask, and it fills in the masked region. If you want to control what appears, you need a separate conditioning signal.

Who Is This For

If you are doing restoration work on old photos, Moebius is worth a look. Its speed and quality make it practical for interactive editing workflows.

For research teams with tight GPU budgets, training a smaller specialized model can be more efficient than fine-tuning a giant one. Moebius shows you do not need 10B parameters to get decent results.

If you want to generate entirely new scenes from text, you still need a full text-to-image model. But for the narrower task of "fix this broken photo," Moebius is a compelling option.

Trying It Yourself

The model weights are on Hugging Face and the code is MIT licensed on GitHub. Installation is a single pip install from their repo.

pip install git+https://github.com/hustvl/Moebius.git
python infer.py --image input.png --mask mask.png --output result.png

They also provide a Gradio demo for quick testing without setting up the full environment.

AI Computer Vision Open Source Transformers