File size: 1,365 Bytes
077c218
 
c69f29e
 
 
 
077c218
 
 
 
8e25a30
077c218
 
 
8e25a30
077c218
 
 
8e25a30
 
9b963b6
 
 
8e25a30
 
9b963b6
 
 
 
 
 
 
 
 
 
8e25a30
85fb769
8e25a30
85fb769
8e25a30
 
 
 
85fb769
8e25a30
85fb769
 
 
8e25a30
 
 
 
fbd9333
85fb769
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
library_name: diffusers
datasets:
- Norod78/Yarn-art-style
base_model:
- black-forest-labs/FLUX.1-dev
---

# Model Card for Model ID

Make everything as Yarn Art Syle.

## Uses

Make everything as Yarn Art Syle.

## How to Get Started with the Model

```python
!pip install -U diffusers bitsandbytes

from diffusers import AutoPipelineForText2Image, BitsAndBytesConfig
import torch
repo_id = "markod0925/yarn_flux"

bnb_4bit_compute_dtype = torch.float16
nf4_config = BitsAndBytesConfig(
    load_in_4bit=True,
    bnb_4bit_quant_type="nf4",
    bnb_4bit_compute_dtype=bnb_4bit_compute_dtype,
)

pipeline = AutoPipelineForText2Image.from_pretrained(repo_id,
                                                     torch_dtype=bnb_4bit_compute_dtype
)
pipeline.enable_model_cpu_offload()
```

```python
image = pipeline(
    "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k", num_inference_steps=28, guidance_scale=3.5, height=768
).images[0]
image
```

![Astronaut in a jungle, cold color palette, muted colors, detailed, 8k](astro_1.png)

```python
image = pipeline(
    "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k, yarn art style", num_inference_steps=28, guidance_scale=3.5, height=768
).images[0]
image
```
![Astronaut in a jungle, cold color palette, muted colors, detailed, 8k, yarn art style](astro_yarn.png)