We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.参考代码,新增 Stable Diffusion XL Long Weighted Prompt Pipeline 2.保证生成结果对齐
The text was updated successfully, but these errors were encountered:
Add Stable Diffusion XL Long Weighted Prompt Pipeline (#461)
b39153e
#413 paddle ![image](https://github.com/PaddlePaddle/PaddleMIX/assets/4617245/938e44c1-a0c1-4a34-8496-f63bc1592673) torch ![torch_out](https://github.com/PaddlePaddle/PaddleMIX/assets/4617245/de1be876-c3bb-4614-bca0-46a150f7d7fa) paddle, torch生成图一致 torch 代码 ``` from diffusers import DiffusionPipeline import torch pipe = DiffusionPipeline.from_pretrained( "stabilityai/stable-diffusion-xl-base-1.0" , torch_dtype = torch.float16 , use_safetensors = True , variant = "fp16" , custom_pipeline = "lpw_stable_diffusion_xl", ) prompt = "photo of a cute (white) cat running on the grass"*20 prompt2 = "chasing (birds:1.5)"*20 prompt = f"{prompt},{prompt2}" neg_prompt = "blur, low quality, carton, animate" pipe.to("cuda") images = pipe( prompt = prompt , negative_prompt = neg_prompt , generator=torch.Generator("cuda").manual_seed(452) ).images[0] images.save("torch_out.png") ```
Add Stable Diffusion XL Long Weighted Prompt Pipeline (PaddlePaddle#461)
334e164
PaddlePaddle#413 paddle ![image](https://github.com/PaddlePaddle/PaddleMIX/assets/4617245/938e44c1-a0c1-4a34-8496-f63bc1592673) torch ![torch_out](https://github.com/PaddlePaddle/PaddleMIX/assets/4617245/de1be876-c3bb-4614-bca0-46a150f7d7fa) paddle, torch生成图一致 torch 代码 ``` from diffusers import DiffusionPipeline import torch pipe = DiffusionPipeline.from_pretrained( "stabilityai/stable-diffusion-xl-base-1.0" , torch_dtype = torch.float16 , use_safetensors = True , variant = "fp16" , custom_pipeline = "lpw_stable_diffusion_xl", ) prompt = "photo of a cute (white) cat running on the grass"*20 prompt2 = "chasing (birds:1.5)"*20 prompt = f"{prompt},{prompt2}" neg_prompt = "blur, low quality, carton, animate" pipe.to("cuda") images = pipe( prompt = prompt , negative_prompt = neg_prompt , generator=torch.Generator("cuda").manual_seed(452) ).images[0] images.save("torch_out.png") ```
jerrywgz
No branches or pull requests
Stable Diffusion XL Long Weighted Prompt Pipeline
任务描述
任务背景
完成步骤
1.参考代码,新增 Stable Diffusion XL Long Weighted Prompt Pipeline
2.保证生成结果对齐
提交内容:
The text was updated successfully, but these errors were encountered: