Update README.md
Browse files
README.md
CHANGED
@@ -20,13 +20,11 @@ widget:
|
|
20 |
- text: uni sitting on a couch wearing a bright yellow scarf, The background is slightly blurred, giving the focus to the cat and its scarf
|
21 |
output:
|
22 |
url: images/image_00067_.png
|
23 |
-
- text:
|
24 |
-
a Komaru cat wearing a pink hat with ears, sitting on a wooden surface with
|
25 |
-
a blurred background
|
26 |
output:
|
27 |
-
url: images/
|
28 |
base_model: black-forest-labs/FLUX.1-dev
|
29 |
-
instance_prompt:
|
30 |
license: other
|
31 |
license_name: flux-1-dev-non-commercial-license
|
32 |
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
@@ -57,8 +55,8 @@ from diffusers import AutoPipelineForText2Image
|
|
57 |
import torch
|
58 |
|
59 |
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
|
60 |
-
pipeline.load_lora_weights('Hack337/flux-lora-
|
61 |
-
image = pipeline('
|
62 |
image.save("my_image.png")
|
63 |
```
|
64 |
|
|
|
20 |
- text: uni sitting on a couch wearing a bright yellow scarf, The background is slightly blurred, giving the focus to the cat and its scarf
|
21 |
output:
|
22 |
url: images/image_00067_.png
|
23 |
+
- text: uni with its mouth open, yawning in a blue bag
|
|
|
|
|
24 |
output:
|
25 |
+
url: images/image_00068_.png
|
26 |
base_model: black-forest-labs/FLUX.1-dev
|
27 |
+
instance_prompt: Uni
|
28 |
license: other
|
29 |
license_name: flux-1-dev-non-commercial-license
|
30 |
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
|
|
55 |
import torch
|
56 |
|
57 |
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
|
58 |
+
pipeline.load_lora_weights('Hack337/flux-lora-Uni', weight_name='uni')
|
59 |
+
image = pipeline('uni laying in a cardboard box on the floor, with a blurred background').images[0]
|
60 |
image.save("my_image.png")
|
61 |
```
|
62 |
|