Skip to content
New issue

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

How can I use stable diffusion2-1? #30

Open
LiManyuan663 opened this issue Aug 9, 2024 · 1 comment
Open

How can I use stable diffusion2-1? #30

LiManyuan663 opened this issue Aug 9, 2024 · 1 comment

Comments

@LiManyuan663
Copy link

I tried to use stable diffusion2-1,

scheduler = DDIMScheduler(beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear", clip_sample=False,
                          set_alpha_to_one=False)
pipeline = StableDiffusionPipeline.from_pretrained(
    "stabilityai/stable-diffusion-2-1",
    revision="fp16",
    scheduler=scheduler
)
pipeline = pipeline.to("cuda")

handler = sa_handler.Handler(pipeline)
sa_args = sa_handler.StyleAlignedArgs(share_group_norm=True,
                                      share_layer_norm=True,
                                      share_attention=True,
                                      adain_queries=True,
                                      adain_keys=True,
                                      adain_values=False,
                                     )

handler.register(sa_args, )

but I got a very strange result,
image

I would be appreciate it if you could answer my question

@LiManyuan663
Copy link
Author

I've fixed the above issue by loading 2-1's sheduler, but I still wonder how can I use 2-1 in style_aligned_trasfer? I am looking forword to your answering.

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

No branches or pull requests

1 participant