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 Pepe
prompt_pepe = (
"A playful meme featuring Pepe the Frog in the context of Mezo. Pepe is depicted as a Bitcoin superhero, complete with a mask and cape, "
"fighting off market FUD. The background is filled with Bitcoin symbols and meme culture references, combining humor and resilience."
)
# 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 Pepe
image_pepe = pipe(
prompt=prompt_pepe,
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_pepe = "mezo_pepe.png"
image_pepe.save(filename_pepe)
print(f"Saved image: {filename_pepe}")](https://image.cdn2.seaart.me/2024-08-30/cr91t25e878c73ep5f10-1/27b3ef05853ec6ad33dc45cc01028c6d_high.webp)

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 Pepe prompt_pepe = ( "A playful meme featuring Pepe the Frog in the context of Mezo. Pepe is depicted as a Bitcoin superhero, complete with a mask and cape, " "fighting off market FUD. The background is filled with Bitcoin symbols and meme culture references, combining humor and resilience." ) # 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 Pepe image_pepe = pipe( prompt=prompt_pepe, 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_pepe = "mezo_pepe.png" image_pepe.save(filename_pepe) print(f"Saved image: {filename_pepe}")
プロンプト
プロンプトをコピー
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 Pepe
prompt_pepe = (
"A playful meme featuring Pepe the Frog in the context of Mezo
.
Pepe is depicted as a Bitcoin superhero
,
complete with a mask and cape
,
"
"fighting off market FUD
.
The background is filled with Bitcoin symbols and meme culture references
,
combining humor and resilience
.
"
)
# 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 Pepe
image_pepe = pipe(
prompt=prompt_pepe
,
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_pepe = "mezo_pepe
.
png"
image_pepe
.
save(filename_pepe)
print(f"Saved image: {filename_pepe}")
情報
Checkpoint & LoRA

Checkpoint
SeaArt Infinity
#カートゥーン
#ファーリー
#SeaArt Infinity
コメント:0件
0
0
0