Views
No views yet
StableDiffusionPipeline tuned for lightweight experimentation with deep unlearning ideas. All large binaries are stored under Git LFS (*.bin and other model artifact extensions as configured in .gitattributes).StableDiffusionPipeline with UNet2DConditionModel, CLIPTextModel, AutoencoderKL, and DPMSolverMultistepScheduler.num_train_timesteps=1000, steps_offset=1, and the default epsilon prediction type that aligns with the diffusion formulation used in Realistic Vision.diffusers==0.19.0.dev0, transformers, torch, accelerate, safetensors).1from diffusers import StableDiffusionPipeline
2from transformers import CLIPTokenizer, CLIPTextModel
3from diffusers import UNet2DConditionModel, AutoencoderKL, DPMSolverMultistepScheduler
4
5pipeline = StableDiffusionPipeline(
6 text_encoder=CLIPTextModel.from_pretrained("path/to/text_encoder"),
7 tokenizer=CLIPTokenizer.from_pretrained("path/to/tokenizer"),
8 unet=UNet2DConditionModel.from_pretrained("path/to/unet"),
9 vae=AutoencoderKL.from_pretrained("path/to/vae"),
10 scheduler=DPMSolverMultistepScheduler.from_config("path/to/scheduler"),
11)
12pipeline.to("cuda")
13prompt = "A cinematic portrait of a futuristic astronaut exploring a coral reef"
14with torch.autocast("cuda"):
15 image = pipeline(prompt, num_inference_steps=25, guidance_scale=7.5).images[0]from_pretrained call with the relative path inside this repository (e.g., "text_encoder"). Exported weights follow the standard Diffusers layout, so you can also load the entire pipeline from disk with StableDiffusionPipeline.load_from_directory(...) if you prefer a single root.num_inference_steps to explore speed/quality trade-offs for on-device sampling.SG161222/Realistic_Vision_V4.0 checkpoints and the Diffusers ecosystem. Verify and comply with the upstream license before redistributing or fine-tuning the weights.