How to use digiplay/STRANGER-ANIME with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("digiplay/STRANGER-ANIME", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0]
in test
Sample prompt and image generated by Huggingface's API :
1girl realistic dark Angel
1girl dark Angel 22y.o moon,(brown hair, golden eyes: 1.3) rain ,extremely detailed sharp ,close-up ,tears ,