Views
No views yet
This image shows a y3o golden retriever happily standing on a sunlit Caribbean beach, its mouth slightly open, revealing a playful pink tongue. The dog's thick, lustrous golden coat, characteristic of the breed, shines warmly under the tropical sun, while its gentle, dark eyes reflect a joyful and friendly demeanor. Behind the retriever, crystal-clear turquoise waters gently lap against pristine white sand, and lush palm trees sway softly in the ocean breeze, creating an idyllic Caribbean setting that perfectly complements the dog's cheerful presence.7.50.030None4210241import torch
2from diffusers import DiffusionPipeline
3
4model_id = 'stabilityai/stable-diffusion-3.5-large'
5adapter_id = 'AngelZeur/subject-lora'
6pipeline = DiffusionPipeline.from_pretrained(model_id)
7pipeline.load_lora_weights(adapter_id)
8
9prompt = "This image shows a y3o golden retriever happily standing on a sunlit Caribbean beach, its mouth slightly open, revealing a playful pink tongue. The dog's thick, lustrous golden coat, characteristic of the breed, shines warmly under the tropical sun, while its gentle, dark eyes reflect a joyful and friendly demeanor. Behind the retriever, crystal-clear turquoise waters gently lap against pristine white sand, and lush palm trees sway softly in the ocean breeze, creating an idyllic Caribbean setting that perfectly complements the dog's cheerful presence."
10negative_prompt = ''
11pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
12image = pipeline(
13 prompt=prompt,
14 negative_prompt=negative_prompt,
15 num_inference_steps=30,
16 generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
17 width=1024,
18 height=1024,
19 guidance_scale=7.5,
20).images[0]
21image.save("output.png", format="PNG")