Text-to-Image
Diffusers
TensorBoard
StableDiffusionPipeline
anthro
furry
e621
nsfw
Not-For-All-Audiences
Instructions to use hearmeneigh/sd21-e621-rising-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hearmeneigh/sd21-e621-rising-v2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("hearmeneigh/sd21-e621-rising-v2", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
|
Download guides/PYTHON.md from hearmeneigh/sd21-e621-rising-v2: direct link, hf CLI and curl.
- Browser
- Download file 585 Bytes
-
https://huggingface.co/hearmeneigh/sd21-e621-rising-v2/resolve/main/guides/PYTHON.md
- Command line
-
hf download hf://hearmeneigh/sd21-e621-rising-v2/guides/PYTHON.md
-
curl -L -o PYTHON.md https://huggingface.co/hearmeneigh/sd21-e621-rising-v2/resolve/main/guides/PYTHON.md
585 Bytes
Python Text2Image Inference
from diffusers import DiffusionPipeline, DPMSolverMultistepScheduler
import torch
repo_id = "hearmeneigh/sd21-e621-rising-v1"
pipe = DiffusionPipeline.from_pretrained(repo_id, torch_dtype=torch.float16, revision="fp16")
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
pipe = pipe.to("cuda")
prompt = "anthro species:equine solo male biped standing rating:questionable evil_grin seductive looking_at_viewer"
image = pipe(prompt, guidance_scale=9, num_inference_steps=25).images[0]
image.save("horse.png")