Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Genshin Impact Varesa Flux lora Early Usage
|
2 |
+
|
3 |
+
|
4 |
+
## Installtion
|
5 |
+
```bash
|
6 |
+
pip install -U diffusers transformers torch sentencepiece peft controlnet-aux moviepy protobuf
|
7 |
+
```
|
8 |
+
|
9 |
+
## Demo
|
10 |
+
```python
|
11 |
+
import torch
|
12 |
+
from diffusers import FluxPipeline
|
13 |
+
|
14 |
+
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
|
15 |
+
pipe.load_lora_weights("my_first_flux_lora_v1.safetensors")
|
16 |
+
pipe.enable_sequential_cpu_offload()
|
17 |
+
|
18 |
+
prompt = "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"
|
19 |
+
|
20 |
+
image = pipe(prompt,
|
21 |
+
num_inference_steps=50,
|
22 |
+
guidance_scale=3.5,
|
23 |
+
).images[0]
|
24 |
+
image.save("Varesa.png")
|
25 |
+
|
26 |
+
from IPython import display
|
27 |
+
display.Image("Varesa.png", width=512, height=512)
|
28 |
+
```
|
29 |
+
|
30 |
+
|
31 |
+

|
32 |
+
|
33 |
+
```python
|
34 |
+
prompt = "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."
|
35 |
+
|
36 |
+
image = pipe(prompt,
|
37 |
+
num_inference_steps=50,
|
38 |
+
guidance_scale=3.5,
|
39 |
+
).images[0]
|
40 |
+
image.save("Varesa.png")
|
41 |
+
|
42 |
+
from IPython import display
|
43 |
+
display.Image("Varesa.png", width=512, height=512)
|
44 |
+
```
|
45 |
+
|
46 |
+
|
47 |
+

|
48 |
+
|