diff --git a/app/cogs/stable_diffusion.py b/app/cogs/stable_diffusion.py index 4a82bed1..1c142154 100755 --- a/app/cogs/stable_diffusion.py +++ b/app/cogs/stable_diffusion.py @@ -44,10 +44,11 @@ class StableDiffusion(commands.Cog): if ctx.author.id == core_utils.my_id: ip = "192.168.1.19" steps = 120 - positive_prompt = ( - positive_prompt - + " " - ) + if "lora" not in positive_prompt: + positive_prompt = ( + positive_prompt + + " " + ) enable_upscale = "true" s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.settimeout(1) diff --git a/app/stable_diffusion.py b/app/stable_diffusion.py index f782565f..e3eee669 100755 --- a/app/stable_diffusion.py +++ b/app/stable_diffusion.py @@ -10,6 +10,7 @@ async def generate_image(ip, port, positives, negatives, steps, enable_upscale): json_data = { "prompt": positives, "negative_prompt": negatives, + "sampler_name": "DPM++ 2M SDE Karras", "steps": steps, "enable_hr": enable_upscale, "hr_upscaler": "Latent",