lora-stable-diffusion
Collection
3 items โข Updated
How to use harsh8001/anime_wallpaper with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("snwy/SD1.5-DALLE-2", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("harsh8001/anime_wallpaper")
prompt = "animewallpaper"
image = pipe(prompt).images[0]import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("snwy/SD1.5-DALLE-2", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("harsh8001/anime_wallpaper")
prompt = "animewallpaper"
image = pipe(prompt).images[0]



This repository contains a Low-Rank Adaptation (LoRA) model fine-tuned for generating highly stylized, anime-inspired environmental and character wallpapers. Built on top of the snwy/SD1.5-DALLE-2 base architecture, this fine-tune is engineered for programmatic image generation and automated creative workflows.
snwy/SD1.5-DALLE-2animewallpaperdiffusers library and node-based execution engines such as ComfyUI.This model can be integrated directly into local Python backend services for dynamic image generation. Ensure you pass the animewallpaper trigger word in your generation prompts.
from diffusers import StableDiffusionPipeline
import torch
base_model_id = "snwy/SD1.5-DALLE-2"
lora_id = "harsh8001/anime_wallpaper"
# Initialize the base pipeline
pipe = StableDiffusionPipeline.from_pretrained(
base_model_id,
torch_dtype=torch.float16
)
# Load the custom LoRA weights
pipe.load_lora_weights(lora_id)
pipe = pipe.to("cuda")
# Generate the visual asset using the required trigger word
prompt = "animewallpaper, a detailed futuristic city skyline at dusk, 4k resolution"
image = pipe(prompt).images[0]
image.save("output_wallpaper.png")
Base model
snwy/SD1.5-DALLE-2