Local diffusers-compatible checkpoint with custom pipeline code.
Default Inference Settings
torch_dtype=torch.bfloat16
guidance_scale=4.5
guidance_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=50
clean_caption=False
Quick Start
import 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)
Runs of BiliSakura RSEdit-DiT-plus on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About RSEdit-DiT-plus huggingface.co Model
RSEdit-DiT-plus huggingface.co
RSEdit-DiT-plus huggingface.co is an AI model on huggingface.co that provides RSEdit-DiT-plus's model effect (), which can be used instantly with this BiliSakura RSEdit-DiT-plus model. huggingface.co supports a free trial of the RSEdit-DiT-plus model, and also provides paid use of the RSEdit-DiT-plus. Support call RSEdit-DiT-plus model through api, including Node.js, Python, http.
RSEdit-DiT-plus huggingface.co is an online trial and call api platform, which integrates RSEdit-DiT-plus's modeling effects, including api services, and provides a free online trial of RSEdit-DiT-plus, you can try RSEdit-DiT-plus online for free by clicking the link below.
BiliSakura RSEdit-DiT-plus online free url in huggingface.co:
RSEdit-DiT-plus is an open source model from GitHub that offers a free installation service, and any user can find RSEdit-DiT-plus on GitHub to install. At the same time, huggingface.co provides the effect of RSEdit-DiT-plus install, users can directly use RSEdit-DiT-plus installed effect in huggingface.co for debugging and trial. It also supports api for free installation.