Import torch from diffusers import StableDiffusionPipeline
![import torch
from diffusers import StableDiffusionPipeline
# Configurar la semilla para resultados consistentes
torch.manual_seed(42)
# Cargar el modelo
pipeline = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")
# Prompt detallado
prompt = ("A young woman with long straight light brown hair, smiling and looking at the camera. "
"She is standing with one hand on her hip, vistiendo una camiseta sin mangas con tirantes delgados y estampados coloridos. "
"Lleva jeans ajustados, desgastados y rasgados en las piernas, y sandalias de plataforma de color beige. "
"The background shows a light door and a dark brown tiled floor, con una pared azul claro a la izquierda.")
# Generar la imagen
image = pipeline(prompt).images[0]
# Guardar la imagen
image.save("output.png")](https://image.cdn2.seaart.me/2024-06-01/cpdbhbde878c73f2slrg/e871e79059bf813406d8f13d34a39252b15ef3a0_high.webp)

import torch from diffusers import StableDiffusionPipeline # Configurar la semilla para resultados consistentes torch.manual_seed(42) # Cargar el modelo pipeline = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4") # Prompt detallado prompt = ("A young woman with long straight light brown hair, smiling and looking at the camera. " "She is standing with one hand on her hip, vistiendo una camiseta sin mangas con tirantes delgados y estampados coloridos. " "Lleva jeans ajustados, desgastados y rasgados en las piernas, y sandalias de plataforma de color beige. " "The background shows a light door and a dark brown tiled floor, con una pared azul claro a la izquierda.") # Generar la imagen image = pipeline(prompt).images[0] # Guardar la imagen image.save("output.png")
Prompts
Prompts kopieren
import torch
from diffusers import StableDiffusionPipeline
# Configurar la semilla para resultados consistentes
torch
.
manual_seed(42)
# Cargar el modelo
pipeline = StableDiffusionPipeline
.
from_pretrained("CompVis/stable-diffusion-v1-4")
# Prompt detallado
prompt = ("A young woman with long straight light brown hair
,
smiling and looking at the camera
.
"
"She is standing with one hand on her hip
,
vistiendo una camiseta sin mangas con tirantes delgados y estampados coloridos
.
"
"Lleva jeans ajustados
,
desgastados y rasgados en las piernas
,
y sandalias de plataforma de color beige
.
"
"The background shows a light door and a dark brown tiled floor
,
con una pared azul claro a la izquierda
.
")
# Generar la imagen
image = pipeline(prompt)
.
images[0]
# Guardar la imagen
image
.
save("output
.
png")
Info
Checkpoint & LoRA

Checkpoint
epiCRealism
#Realistisch
#Fotografie
0 Kommentar(e)
0
0
0