From diffusers import StableDiffusionPipeline import torch
숨겨진 이야기가 있어, 들어볼래?
from diffusers import StableDiffusionPipeline import torch # Carregue o pipeline do Stable Diffusion pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float16) pipe.to("cuda") # Defina o prompt para gerar a imagem prompt = "Nobara Kugisaki from Jujutsu Kaisen in a dynamic pose, detailed, anime style" # Gere a imagem image = pipe(prompt).images[0] # Salve a imagem image.save("nobara_kugisaki.png")
프롬프트
Copy prompts
from diffusers import StableDiffusionPipeline
import torch
# Carregue o pipeline do Stable Diffusion
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float16)
pipe.to("cuda")
# Defina o prompt para gerar a imagem
prompt = "Nobara Kugisaki from Jujutsu Kaisen in a dynamic pose, detailed, anime style"
# Gere a imagem
image = pipe(prompt).images[0]
# Salve a imagem
image.save("nobara_kugisaki.png")
0개의 댓글
0
1
0