Views
No views yet
1import torch
2from diffusers import ModularPipeline
3
4device = "cuda"
5
6pipe = ModularPipeline.from_pretrained("wssdaas/nova-anime-am-v4.0")
7pipe.load_components(torch_dtype=torch.bfloat16)
8pipe.to(device)
9
10prompt = "A cozy, high-quality anime illustration of Shigure Ui sitting at a wooden desk in a warm classroom. She has short cream-blonde hair with neat straight bangs, side braids adorned with white fluffy pom-pom hair accessories, and large, bright green eyes glowing with a gentle, cute expression. She is leaning forward on the desk with her chin resting on her arms, holding an orange pencil near her face and smiling sweetly at the viewer. She wears an oversized charcoal brown pinstripe sweater over a sailor uniform with a red collared neck and striped cuffs. On the wooden desk in front of her sits a carton of milk tea with a straw, a few small wrapped candies, a small pink gift box with a bow, and a wrapped gift bag. Warm afternoon sunlight pours in through the classroom windows, filling the scene with golden light, soft sunbeams, and a peaceful golden hour mood."
11
12image = pipe(
13 prompt=prompt,
14 negative_prompt="worst quality, low quality, nsfw",
15 height=1024,
16 width=768,
17 num_inference_steps=20,
18).images[0]
19
20image.save("output.png")