Update README.md
Browse files
README.md
CHANGED
|
@@ -71,3 +71,42 @@ for i,ax in enumerate(axes):
|
|
| 71 |
ax.axis('off')
|
| 72 |
plt.show()
|
| 73 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
ax.axis('off')
|
| 72 |
plt.show()
|
| 73 |
```
|
| 74 |
+
|
| 75 |
+
## Effect of different prompts
|
| 76 |
+
|
| 77 |
+
```python
|
| 78 |
+
platypus_prompts = [
|
| 79 |
+
"A cyberpunk platypus",
|
| 80 |
+
"A steampunk platypus with brass gears and mechanical limbs, intricate Victorian-style machinery, warm tones, highly detailed illustration",
|
| 81 |
+
"A platypus swimming in a serene river, soft watercolor painting, pastel colors, gentle brush strokes, dreamy atmosphere",
|
| 82 |
+
"Cute cartoon platypus, big expressive eyes, playful pose, bright cheerful colors, whimsical style, 2D animation style",
|
| 83 |
+
"A fantasy platypus wearing mystical armor, magical glowing runes on its body, standing on a cliff, dramatic lighting, epic fantasy illustration",
|
| 84 |
+
"A cybernetic platypus, robotic enhancements, glowing circuits, sci-fi aesthetic, sleek metallic textures, high detail, digital art",
|
| 85 |
+
"A platypus in the wild, painted in classical oil painting style, rich textures, dramatic lighting, realistic yet painterly, Baroque-inspired composition",
|
| 86 |
+
"A pop art platypus, vibrant contrasting colors, bold outlines, comic-style halftone patterns, playful modern art",
|
| 87 |
+
"A platypus rendered in retro pixel art, 16-bit video game style, colorful small-scale grid, cute and nostalgic",
|
| 88 |
+
"A surreal platypus floating in a dreamlike landscape, abstract shapes, vibrant colors, imaginative surrealism, Salvador Dali inspired"
|
| 89 |
+
]
|
| 90 |
+
|
| 91 |
+
gen_images=[]
|
| 92 |
+
|
| 93 |
+
for prompt in platypus_prompts:
|
| 94 |
+
gen_image = pipeline(
|
| 95 |
+
prompt=prompt,
|
| 96 |
+
guidance_scale=7.5,
|
| 97 |
+
num_inference_steps=25,
|
| 98 |
+
height=512,
|
| 99 |
+
width=512,
|
| 100 |
+
cross_attention_kwargs={"scale": 0.9},
|
| 101 |
+
generator=torch.manual_seed(42)
|
| 102 |
+
).images[0]
|
| 103 |
+
|
| 104 |
+
gen_images.append(gen_image)
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
fig,axes = plt.subplots(1,10,figsize=(20,10))
|
| 108 |
+
for i,ax in enumerate(axes):
|
| 109 |
+
ax.imshow(gen_images[i])
|
| 110 |
+
ax.axis('off')
|
| 111 |
+
plt.show()
|
| 112 |
+
```
|