From stable_diffusion import StableDiffusionPipeline import torch from PIL impor
![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 prompt for Mezo Bull
prompt_bull = (
"A funny illustration of a bull representing Bitcoin’s rising price in the Mezo platform. "
"The bull is wearing a suit with a Bitcoin tie, looking optimistic while holding a chart with an upward trend. "
"The background is filled with humorous crypto symbols and vibrant DeFi elements."
)
# Configuration settings
clip_guidance_scale = 20 # Strong guidance for focus
hr_scale = 4.0 # High-resolution scaling
hr_upscaler = "R-ESRGAN" # High-quality upscaling
latent_shift = torch.randn(1, 4, 64, 64) * 0.02 # Subtle variation for dynamic effect
shallow_depth_of_field = True # Shallow depth of field for subject focus
lighting_style = "modern and bright" # Modern lighting effects
color_match_strength = 1.5 # Balanced color matching
noise_scale = 0.02 # Noise level for texture
fractal_noise = True # Adds fractal noise for enhanced texture
# Generate the image for Mezo Bull
image_bull = pipe(
prompt=prompt_bull,
clip_guidance_scale=clip_guidance_scale,
hr_scale=hr_scale,
hr_upscaler=hr_upscaler,
latent_shift=latent_shift,
shallow_depth_of_field=shallow_depth_of_field,
lighting_style=lighting_style,
color_match_strength=color_match_strength,
noise="perlin",
noise_scale=noise_scale,
fractal_noise=fractal_noise
).images[0]
# Save the generated image
filename_bull = "mezo_bull.png"
image_bull.save(filename_bull)
print(f"Saved image: {filename_bull}")](https://image.cdn2.seaart.me/2024-08-30/cr91r5de878c73anqikg-2/5cb39851be3529c5a8f17e86991b1aa4_high.webp)
Generation Data
Records
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 prompt for Mezo Bull
prompt_bull = (
"A funny illustration of a bull representing Bitcoin’s rising price in the Mezo platform
.
"
"The bull is wearing a suit with a Bitcoin tie
,
looking optimistic while holding a chart with an upward trend
.
"
"The background is filled with humorous crypto symbols and vibrant DeFi elements
.
"
)
# Configuration settings
clip_guidance_scale = 20 # Strong guidance for focus
hr_scale = 4
.
0 # High-resolution scaling
hr_upscaler = "R-ESRGAN" # High-quality upscaling
latent_shift = torch
.
randn(1
,
4
,
64
,
64) * 0
.
02 # Subtle variation for dynamic effect
shallow_depth_of_field = True # Shallow depth of field for subject focus
lighting_style = "modern and bright" # Modern lighting effects
color_match_strength = 1
.
5 # Balanced color matching
noise_scale = 0
.
02 # Noise level for texture
fractal_noise = True # Adds fractal noise for enhanced texture
# Generate the image for Mezo Bull
image_bull = pipe(
prompt=prompt_bull
,
clip_guidance_scale=clip_guidance_scale
,
hr_scale=hr_scale
,
hr_upscaler=hr_upscaler
,
latent_shift=latent_shift
,
shallow_depth_of_field=shallow_depth_of_field
,
lighting_style=lighting_style
,
color_match_strength=color_match_strength
,
noise="perlin"
,
noise_scale=noise_scale
,
fractal_noise=fractal_noise
)
.
images[0]
# Save the generated image
filename_bull = "mezo_bull
.
png"
image_bull
.
save(filename_bull)
print(f"Saved image: {filename_bull}")
INFO
Checkpoint & LoRA

Checkpoint
SeaArt Infinity
#Cartoon
#SeaArt Infinity
0 comment
0
0
0