From 7b31a3a9b73ba0d59e66a6431ca1c06083ef62d0 Mon Sep 17 00:00:00 2001 From: Jake Chai <61836864+jakechai@users.noreply.github.com> Date: Thu, 6 Mar 2025 22:35:20 +0800 Subject: [PATCH] Remove cfg_scale for sd3-large-turbo cfg_scale not supported for sd3-large-turbo --- stability_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/stability_api.py b/stability_api.py index c9a21cc..cbf92c6 100644 --- a/stability_api.py +++ b/stability_api.py @@ -101,6 +101,7 @@ def call(self, *args, **kwargs): if self.API_ENDPOINT == "stable-image/generate/sd3" and kwargs.get('model', "sd3-large-turbo") == "sd3-large-turbo": del data['negative_prompt'] + del data['cfg_scale'] if kwargs.get('aspect_ratio', None) is not None: data['aspect_ratio'] = data['aspect_ratio'].split("(", 1)[0]