Skip to content

Conversation

@yiyixuxu
Copy link
Collaborator

I made a mistake in https://github.com/huggingface/diffusers/pull/9065/files#
fixing it!

sanity check

from diffusers import AutoPipelineForText2Image, AutoPipelineForImage2Image
import torch

repo = "Kwai-Kolors/Kolors-diffusers"

pipe_txt2img = AutoPipelineForText2Image.from_pretrained(repo, variant="fp16", torch_dtype=torch.float16).to("cuda")
assert pipe_txt2img.__class__.__name__ == "KolorsPipeline"

pipe_txt2img_pag = AutoPipelineForText2Image.from_pretrained(repo, torch_dtype=torch.float16, variant="fp16", enable_pag=True).to("cuda")
assert pipe_txt2img_pag.__class__.__name__ == "KolorsPAGPipeline"

pipe_img2img = AutoPipelineForImage2Image.from_pretrained(repo, variant="fp16", torch_dtype=torch.float16).to("cuda")
assert pipe_img2img.__class__.__name__ == "KolorsImg2ImgPipeline"

@yiyixuxu yiyixuxu requested a review from asomoza August 19, 2024 00:09
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Member

@asomoza asomoza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, LGTM!

@yiyixuxu yiyixuxu merged commit 67f5cce into main Aug 19, 2024
@yiyixuxu yiyixuxu deleted the fix-a-auto-kolors branch August 19, 2024 17:40
sayakpaul pushed a commit that referenced this pull request Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants