Downloads · 30 days
10
50% of all-time downloads
sylviaHoch/SAR-StableDiffusion
SAR-StableDiffusion is a text-to-image model from sylviaHoch. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as cc-by-nc-sa-4.0.
Fine-tuned Stable Diffusion 1.5 backbone for generating synthetic Sentinel-1 SAR amplitude images from text prompts. Published alongside the upcoming paper "Diffusion-Based SAR Training Data Synthesis Controlled by Sp…
Downloads · 30 days
10
50% of all-time downloads
All-time downloads
20
Public
Parameters
860M
5.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5.5 GB · 100%
From the Hugging Face model README
Fine-tuned Stable Diffusion 1.5 backbone for generating synthetic Sentinel-1 SAR amplitude images from text prompts.
Published alongside the upcoming paper "Diffusion-Based SAR Training Data Synthesis Controlled by Spatial Annotations" (Hochstuhl et al., 2026; accepted for GCPR conference 2026).
The model generates single-channel SAR amplitude images for specific land cover types similar to Sentinel-1 GRD image products (in VH polarization).
For spatially controlled generation via ship/land masks, use this model together with
sylviaHoch/SAR-ControlNet.
The model was fine-tuned on Sentinel-1 acquisitions from the SEN12MS dataset dataset. The corresponding text prompts were derived from the dataset's land cover maps, using the dominant land cover class within each image patch. Possible land cover classes are:
| Component | Details |
|---|---|
| Base model | Stable Diffusion 1.5 |
| VAE decoder | Adapted to single-channel output |
| Text encoder | Fine-tuned with a LoRA adapter (adapter_text_encoder/) |
| Output | Single-channel float32 SAR amplitude image |
SAR-StableDiffusion/
├── model_index.json
├── unet/
├── vae/ # Modified: single-channel conv_out
├── text_encoder/
├── tokenizer/
├── scheduler/
├── feature_extractor/
└── adapter_text_encoder/ # LoRA adapter for text encoder
├── adapter_config.json
└── adapter_model.safetensors
This model can be used directly with the 🤗 diffusers pipeline. The LoRA adapter for the text encoder is included in this repository and must be loaded manually after initialising the pipeline.
Requirements:
torch (CUDA recommended)diffuserspeftimport torch
from diffusers import StableDiffusionPipeline
from peft import PeftModel
MODEL_ID = "sylviaHoch/SAR-StableDiffusion"
# Load pipeline
pipeline = StableDiffusionPipeline.from_pretrained(
MODEL_ID,
torch_dtype=torch.float16
).to("cuda")
# Load LoRA text-encoder adapter
pipeline.text_encoder = PeftModel.from_pretrained(
pipeline.text_encoder,
MODEL_ID,
subfolder="adapter_text_encoder"
)
# Generate
image = pipeline(
"Woody Savannas.",
num_inference_steps=50,
guidance_scale=3.0,
output_type="pt"
).images
image is a torch.Tensor of shape (N, C, H, W) with values in the range [0, 1] and dtype float32, where N is the batch size (here 1), C the number of channels (here 1, grayscale), and H and W the native model resolution (512 x 512).
This model is released under CC BY-NC-SA 4.0.
Commercial use is not permitted. Derivatives must be shared under the same license.
See LICENSE for details.