From stable_diffusion import StableDiffusionPipeline import torch from PIL impor
I have some hidden stories. Dare to hear them?
from stable_diffusion import StableDiffusionPipeline import torch from PIL import Image # Load the Stable Diffusion model pipe = StableDiffusionPipeline.from_pretrained("stable-diffusion-v1-4") pipe = pipe.to("cuda") # Use GPU if available # Define the provocative prompt for the whale scene prompts = { "provocative_whale_scene": ( "A highly provocative digital painting featuring a massive, self-absorbed whale adorned with a sparkling Bitcoin chain around its neck. " "The whale is striking a triumphant, almost sensual pose as it basks in its own grandeur. Mera, the Aqua Woman from Aquaman, is shown in a state of ecstatic pleasure, " "her face contorted in a rapturous expression as she passionately grips the Bitcoin chain. Her body language suggests intense enjoyment, with exaggerated details emphasizing her pleasure. " "In stark contrast, Aquaman is depicted in the background, visibly distraught and tearful, his face reflecting a mix of shock and despair. " "The underwater scene is vividly colored, with surreal and exaggerated elements, amplifying the emotional contrast and the dramatic, provocative nature of the scene. " "The atmosphere is charged with tension, highlighting the intense, provocative interaction between Mera and the whale, while Aquaman's emotional reaction adds to the scene's dramatic impact." ) } # Generate the image for the prompt for name, prompt in prompts.items(): # Generate the image using the prompt image = pipe(prompt).images[0] # Save the generated image filename = f"{name.lower().replace(' ', '_')}.png" image.save(filename) print(f"Saved image: {filename}") # Optionally, show the generated image image.show()
Prompts
Copy
from stable_diffusion import StableDiffusionPipeline
import torch
from PIL import Image
# Load the Stable Diffusion model
pipe = StableDiffusionPipeline.from_pretrained("stable-diffusion-v1-4")
pipe = pipe.to("cuda") # Use GPU if available
# Define the provocative prompt for the whale scene
prompts = {
"provocative_whale_scene": (
"A highly provocative digital painting featuring a massive, self-absorbed whale adorned with a sparkling Bitcoin chain around its neck. "
"The whale is striking a triumphant, almost sensual pose as it basks in its own grandeur. Mera, the Aqua Woman from Aquaman, is shown in a state of ecstatic pleasure, "
"her face contorted in a rapturous expression as she passionately grips the Bitcoin chain. Her body language suggests intense enjoyment, with exaggerated details emphasizing her pleasure. "
"In stark contrast, Aquaman is depicted in the background, visibly distraught and tearful, his face reflecting a mix of shock and despair. "
"The underwater scene is vividly colored, with surreal and exaggerated elements, amplifying the emotional contrast and the dramatic, provocative nature of the scene. "
"The atmosphere is charged with tension, highlighting the intense, provocative interaction between Mera and the whale, while Aquaman's emotional reaction adds to the scene's dramatic impact."
)
}
# Generate the image for the prompt
for name, prompt in prompts.items():
# Generate the image using the prompt
image = pipe(prompt).images[0]
# Save the generated image
filename = f"{name.lower().replace(' ', '_')}.png"
image.save(filename)
print(f"Saved image: {filename}")
# Optionally, show the generated image
image.show()
0 comment
0
0
0