Skip to content

Sampler error on text to image - SAMPLER_K_DPMPP_2M - No such sampler #284

@elvinagam

Description

@elvinagam

Getting no such sampler error. What might be a reason? Using the same copy pasted code from your api documentation

def generate_stability(self, prompt, negative_prompt="", edit_parameter=-1, seed=4, steps=50, cfg_scale=8.0,
                           width=1024, height=1024, samples=4, sampler=generation.SAMPLER_K_DPMPP_2M):
        # sampler is sensitive
        try:
            stability_api = client.StabilityInference(
                key=self.key,
                verbose=True,
                engine="stable-diffusion-xl-1024-v1-0"
            )

            answers = stability_api.generate(
                prompt=[generation.Prompt(text=prompt, parameters=generation.PromptParameters(weight=1)),
                        generation.Prompt(text=negative_prompt, parameters=generation.PromptParameters(weight=edit_parameter))],
                seed=seed,
                steps=steps,
                cfg_scale=cfg_scale,
                width=width,
                height=height,
                samples=samples,
                sampler=sampler
            )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions