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

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

Open
elvinagam opened this issue Apr 29, 2024 · 0 comments
Open

Comments

@elvinagam
Copy link

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
            )
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