Update README.md
Browse files
README.md
CHANGED
|
@@ -6,19 +6,19 @@ tags:
|
|
| 6 |
- diffusers
|
| 7 |
- fal
|
| 8 |
widget:
|
| 9 |
-
- text: "
|
| 10 |
output:
|
| 11 |
url: pictures/t2i_1.png
|
| 12 |
-
- text: "
|
| 13 |
output:
|
| 14 |
url: pictures/t2i_2.png
|
| 15 |
-
- text: "
|
| 16 |
output:
|
| 17 |
url: pictures/t2i_3.png
|
| 18 |
-
- text: "
|
| 19 |
output:
|
| 20 |
url: pictures/t2i_4.png
|
| 21 |
-
- text: "
|
| 22 |
output:
|
| 23 |
url: pictures/t2i_5.png
|
| 24 |
- text: "A photo of a serene landscape with a calm lake reflecting the surrounding mountains and forests. The mountains have a mix of tree and exposed rock. The sky is overcast, with dark clouds covering the sky. The reflection of the mountains and sky on the lake is mirror-clear. The shoreline is lined with trees. The ground is covered with grass."
|
|
@@ -51,11 +51,8 @@ pipe = FluxControlNetPipeline.from_pretrained('black-forest-labs/FLUX.1-dev',
|
|
| 51 |
torch_dtype=torch.bfloat16).to("cuda")
|
| 52 |
|
| 53 |
|
| 54 |
-
font_mask_pil = Image.open(font_mask_path)
|
| 55 |
font_mask_npy = np.array(font_mask_pil)
|
| 56 |
-
if len(font_mask_npy.shape) == 2:
|
| 57 |
-
font_mask_npy = cv2.cvtColor(font_mask_npy, cv2.COLOR_GRAY2RGB)
|
| 58 |
-
font_mask_pil = Image.fromarray(font_mask_npy)
|
| 59 |
|
| 60 |
prompt = "Vibrant, multicolored lettering against a soft, pastel background, with the letters appearing to be made of delicate petals and blooming flowers, giving a sense of freshness and natural beauty. The texture should mimic the intricate layers and velvety surfaces of various blossoms, with subtle gradients and occasional dewdrops enhancing the lifelike appearance."
|
| 61 |
image = pipe(prompt,
|
|
@@ -64,7 +61,8 @@ image = pipe(prompt,
|
|
| 64 |
num_inference_steps=30,
|
| 65 |
guidance_scale=3.5,
|
| 66 |
generator=torch.Generator("cuda").manual_seed(42)).images[0]
|
| 67 |
-
image.
|
|
|
|
| 68 |
```
|
| 69 |
|
| 70 |
|
|
|
|
| 6 |
- diffusers
|
| 7 |
- fal
|
| 8 |
widget:
|
| 9 |
+
- text: "Fiery red and orange lettering against a dark charcoal background, with the letters appearing to be made of flickering flames and glowing embers, giving a sense of intense heat and dynamic movement. The texture should mimic the crackling and flowing nature of fire, with occasional sparks flying off the edges."
|
| 10 |
output:
|
| 11 |
url: pictures/t2i_1.png
|
| 12 |
+
- text: "Cool blue and turquoise lettering against a deep navy background, with the letters appearing to be made of flowing water and gentle waves, giving a sense of fluidity and calm. The texture should mimic the rippling and shimmering surface of a clear ocean, with light reflections and occasional droplets splashing off the edges."
|
| 13 |
output:
|
| 14 |
url: pictures/t2i_2.png
|
| 15 |
+
- text: "Creamy pastel-colored lettering against a light, frosty background, with the letters appearing to be made of swirled, soft-serve ice cream, giving a sense of deliciousness and indulgence. The texture should mimic the smooth, velvety surface of freshly scooped ice cream, with subtle swirls, drips, and a slightly glossy, mouth-watering finish."
|
| 16 |
output:
|
| 17 |
url: pictures/t2i_3.png
|
| 18 |
+
- text: "Vibrant, multicolored lettering against a soft, pastel background, with the letters appearing to be made of delicate petals and blooming flowers, giving a sense of freshness and natural beauty. The texture should mimic the intricate layers and velvety surfaces of various blossoms, with subtle gradients and occasional dewdrops enhancing the lifelike appearance."
|
| 19 |
output:
|
| 20 |
url: pictures/t2i_4.png
|
| 21 |
+
- text: "Rich, bold lettering against a textured canvas background, with the letters appearing to be made of thick, vibrant oil paint strokes, giving a sense of depth and artistic expression. The texture should mimic the dynamic, layered application of oil paints, with visible brushstrokes, impasto effects, and a glossy finish that catches the light in different ways."
|
| 22 |
output:
|
| 23 |
url: pictures/t2i_5.png
|
| 24 |
- text: "A photo of a serene landscape with a calm lake reflecting the surrounding mountains and forests. The mountains have a mix of tree and exposed rock. The sky is overcast, with dark clouds covering the sky. The reflection of the mountains and sky on the lake is mirror-clear. The shoreline is lined with trees. The ground is covered with grass."
|
|
|
|
| 51 |
torch_dtype=torch.bfloat16).to("cuda")
|
| 52 |
|
| 53 |
|
| 54 |
+
font_mask_pil = Image.open(font_mask_path).convert("RGB")
|
| 55 |
font_mask_npy = np.array(font_mask_pil)
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
prompt = "Vibrant, multicolored lettering against a soft, pastel background, with the letters appearing to be made of delicate petals and blooming flowers, giving a sense of freshness and natural beauty. The texture should mimic the intricate layers and velvety surfaces of various blossoms, with subtle gradients and occasional dewdrops enhancing the lifelike appearance."
|
| 58 |
image = pipe(prompt,
|
|
|
|
| 61 |
num_inference_steps=30,
|
| 62 |
guidance_scale=3.5,
|
| 63 |
generator=torch.Generator("cuda").manual_seed(42)).images[0]
|
| 64 |
+
rgba = Image.fromarray(np.concatenate([np.array(image), cv2.resize(font_mask_npy, (1024, 1024))[..., :1]], axis=-1))
|
| 65 |
+
rgba.save("./{}.png".format(datetime.now().strftime("%Y%m%d%H%M%S")))
|
| 66 |
```
|
| 67 |
|
| 68 |
|