Views
No views yet
pip install -U diffusers transformers torch sentencepiece peft controlnet-aux moviepy protobuf1import torch
2from diffusers import FluxPipeline
3
4pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
5pipe.load_lora_weights("my_first_flux_lora_v1.safetensors")
6pipe.enable_sequential_cpu_offload()
7
8prompt = "In the style of Varesa , This digital anime-style drawing features Varesa, a pink-haired character with large, expressive purple eyes. She wears a black crop top, a short pleated skirt, and thigh-high white stockings with red accents. She has a bell collar and a star-shaped hair clip. Varesa holds a sandwich in her hands"
9
10image = pipe(prompt,
11 num_inference_steps=50,
12 guidance_scale=3.5,
13 ).images[0]
14image.save("Varesa.png")
15
16from IPython import display
17display.Image("Varesa.png", width=512, height=512)
1prompt = "In the style of Varesa , In this vibrant anime-style digital artwork, Varesa, a cute girl with long, wavy pink hair, wears a black and white outfit with a crop top, thigh-high socks, and a heart-shaped knee patch. She sits on a wooden bench in a sunny village with rustic houses and rolling hills. Her large purple eyes and horn-like hair accessories add to her enchanting appearance. The background features fluffy clouds and distant mountains."
2
3image = pipe(prompt,
4 num_inference_steps=50,
5 guidance_scale=3.5,
6 ).images[0]
7image.save("Varesa.png")
8
9from IPython import display
10display.Image("Varesa.png", width=512, height=512)
