Open elvinagam opened 2 months ago
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 )
Getting no such sampler error. What might be a reason? Using the same copy pasted code from your api documentation