Self-contained
Diffusers
checkpoint for
MMDiff
: text-driven generation of spatially consistent
optical (OPT)
,
synthetic aperture radar (SAR)
, and
infrared (IR)
remote-sensing images from a single prompt.
Converted from
XinRan-Tang/MM-Diff
with the native custom pipeline in
MMDiff-diffusers
. The optical UNet is a Stable Diffusion v1.4 backbone fine-tuned on optical image–text pairs; SAR and IR style are applied with scene LoRA adapters plus in-memory spatial feature transfer (no disk dumps under
features/
).
This folder is a complete Diffusers repo: load the
root
, not a nested variant.
Load from Hugging Face
import torch
from diffusers import DiffusionPipeline
pipe = DiffusionPipeline.from_pretrained(
"BiliSakura/MMDiff-diffusers",
trust_remote_code=True,
torch_dtype=torch.bfloat16,
).to("cuda")
generator = torch.Generator(device="cpu").manual_seed(2026)
output = pipe(
"There is a ship in the blue water on the shore.",
scene="ship",
height=256,
width=256,
num_inference_steps=50,
guidance_scale=7.5,
generator=generator,
)
output.opt[0].save("opt.png")
output.sar[0].save("sar.png")
output.ir[0].save("ir.png")
Load from a local clone
from pathlib import Path
import torch
from diffusers import DiffusionPipeline
model_dir = Path("./MMDiff-diffusers").resolve()
pipe = DiffusionPipeline.from_pretrained(
str(model_dir),
local_files_only=True,
custom_pipeline=str(model_dir / "pipeline.py"),
trust_remote_code=True,
torch_dtype=torch.bfloat16,
).to("cuda")
generator = torch.Generator(device="cpu").manual_seed(2026)
output = pipe(
"There is a ship in the blue water on the shore.",
scene="ship",
modalities="all", # or ["opt", "sar", "ir"]
height=256,
width=256,
num_inference_steps=50,
guidance_scale=7.5,
generator=generator,
)
output.opt[0].save("demo/opt/demo.png")
output.sar[0].save("demo/sar/demo.png")
output.ir[0].save("demo/ir/demo.png")
modalities
accepts
"all"
or any subset of
"opt"
,
"sar"
,
"ir"
. SAR/IR generation requires OPT spatial features; the pipeline runs OPT first when they are not supplied via
spatial_features
.
output.images
is the first requested modality (Stable Diffusion convention);
output.opt
/
output.sar
/
output.ir
hold per-modality PIL lists.
scene
selects packaged SAR/IR LoRAs. Override with
sar_lora_path
/
ir_lora_path
if needed.
Pass
return_spatial_features=True
to reuse captured OPT features in a later call.
Intended use
Research on text-driven multi-modal remote-sensing generation, cross-modality spatial transfer, multi-modal fusion, and downstream MMRS data augmentation. Not intended as a general-purpose photorealistic image generator.
@article{tang2026mmdiff,
title = {MMDiff: Multi-modal remote sensing image generation via cross-modality spatial feature transfer},
author = {Tang, Haojun and Zhao, Wenda and Cui, Hengshuai and Wang, Haipeng},
journal = {ISPRS Journal of Photogrammetry and Remote Sensing},
year = {2026},
doi = {10.1016/j.isprsjprs.2026.08.018}
}
Runs of BiliSakura MMDiff-diffusers on huggingface.co
28
Total runs
0
24-hour runs
0
3-day runs
3
7-day runs
3
30-day runs
More Information About MMDiff-diffusers huggingface.co Model
MMDiff-diffusers huggingface.co is an AI model on huggingface.co that provides MMDiff-diffusers's model effect (), which can be used instantly with this BiliSakura MMDiff-diffusers model. huggingface.co supports a free trial of the MMDiff-diffusers model, and also provides paid use of the MMDiff-diffusers. Support call MMDiff-diffusers model through api, including Node.js, Python, http.
MMDiff-diffusers huggingface.co is an online trial and call api platform, which integrates MMDiff-diffusers's modeling effects, including api services, and provides a free online trial of MMDiff-diffusers, you can try MMDiff-diffusers online for free by clicking the link below.
BiliSakura MMDiff-diffusers online free url in huggingface.co:
MMDiff-diffusers is an open source model from GitHub that offers a free installation service, and any user can find MMDiff-diffusers on GitHub to install. At the same time, huggingface.co provides the effect of MMDiff-diffusers install, users can directly use MMDiff-diffusers installed effect in huggingface.co for debugging and trial. It also supports api for free installation.