Using Pony models with diffusers

Is it necessary for Pony models to directly set the clip skip to 2(-2) or it is already used like this in StableDiffusionXLPipeline? If i do, how can i perform this? I couldn’t find any information on setting clip skip value in diffusers on sdxl models.

Actually, that feature is probably not an SDXL standard, but unique to the A1111 WebUI lineage. It is the de facto standard, though.
You can enable it using the community pipeline below.
It is also used in the Animagine generation space, for example.

    pipe = pipeline(
        model_name,
        vae=vae,
        torch_dtype=torch.float16,
        custom_pipeline="lpw_stable_diffusion_xl",
        use_safetensors=True,
        add_watermarker=False,
        use_auth_token=HF_TOKEN,
    )

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.