Views
No views yet
| 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 |
1HR-SAR-StableDiffusion/
2├── model_index.json
3├── unet/
4├── vae/ # Modified: single-channel conv_out
5├── text_encoder/
6├── tokenizer/
7├── scheduler/
8├── feature_extractor/
9└── adapter_text_encoder/ # LoRA adapter for text encoder
10 ├── adapter_config.json
11 └── adapter_model.safetensorstorch (CUDA recommended)diffuserspeft1import torch
2from diffusers import StableDiffusionPipeline
3from peft import PeftModel
4
5MODEL_ID = "sylviaHoch/HR-SAR-StableDiffusion"
6
7# Load pipeline
8pipeline = StableDiffusionPipeline.from_pretrained(
9 MODEL_ID,
10 torch_dtype=torch.float16
11).to("cuda")
12
13# Load LoRA text-encoder adapter
14pipeline.text_encoder = PeftModel.from_pretrained(
15 pipeline.text_encoder,
16 MODEL_ID,
17 subfolder="adapter_text_encoder"
18)
19
20# Generate
21image = pipeline(
22 "An aerial view of oil tanks.",
23 num_inference_steps=50,
24 guidance_scale=3.0,
25 output_type="pt"
26).images
27image 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).
1@inproceedings{sar_diffusion_gcpr2026,
2 title = {Diffusion-Based SAR Training Data Synthesis Controlled by Spatial Annotations},
3 booktitle = {German Conference on Pattern Recognition (GCPR)},
4 year = {2026},
5 note = {accepted, to be published},
6 authors = {}
7}