Downloads · 30 days
1
3% of all-time downloads
BiliSakura/RSEdit-DiT-depthiwiseFFN
RSEdit-DiT-depthiwiseFFN is a image-to-image model from BiliSakura. Use it when you need one image transformed into another. It is set up for diffusers.
Local diffusers-compatible checkpoint with custom pipeline code.
Downloads · 30 days
1
3% of all-time downloads
All-time downloads
36
Public
Parameters
612M
21.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors14.6 GB · 60%
From the Hugging Face model README
Local diffusers-compatible checkpoint with custom pipeline code.
torch_dtype=torch.bfloat16guidance_scale=4.5guidance_interval=(0.0, 1.0) (default: guidance active for the full denoising schedule)image_guidance_scale=None (falls back to guidance_scale)num_inference_steps=50clean_caption=Falseimport torch
from PIL import Image
from diffusers import DiffusionPipeline
model_dir = "/data/projects/RSEdit/models/BiliSakura/RSEdit-DiT-Modified"
img_path = "/data/projects/RSEdit/datasets/BiliSakura/RSCC-RSEdit-Test-Split/images/hurricane-florence_00000109_post_disaster_part1.png"
out_path = "/data/projects/RSEdit/outputs/hurricane-florence_00000109_rsedit_bf16_cfg4p5_seed12345.png"
prompt = "Severe flooding engulfed the area, submerging all six buildings up to their rooftops, causing partial wall collapses and significant structural weakening. Vegetation along the shoreline was stripped away by rushing waters, exposing bare earth and debris. Roads near the settlement became impassable due to mudslides and erosion, isolating the community. No intact structures remained visible, with every building classified as majorly damaged (Level 2) under disaster protocols."
pipe = DiffusionPipeline.from_pretrained(
model_dir,
custom_pipeline=f"{model_dir}/pipeline.py",
torch_dtype=torch.bfloat16,
).to("cuda")
print("Pipeline:", pipe.__class__.__name__)
print("Transformer:", pipe.transformer.__class__.__name__)
image = Image.open(img_path).convert("RGB")
result = pipe(
prompt=prompt,
source_image=image,
num_inference_steps=50,
guidance_scale=4.5,
image_guidance_scale=1.5,
guidance_interval=(0.0, 1.0), # default full-range guidance
clean_caption=False,
generator=torch.Generator(device="cuda").manual_seed(12345),
).images[0]
result.save(out_path)
print("Saved:", out_path)