From ec05073000f67e0c5bb0586fe8ef38a00901c046 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Mon, 17 Apr 2023 16:31:29 +0200 Subject: [PATCH] more stable diffusion parameters --- matrix_pygmalion_bot/ai/runpod.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/matrix_pygmalion_bot/ai/runpod.py b/matrix_pygmalion_bot/ai/runpod.py index eaf751e..045746f 100644 --- a/matrix_pygmalion_bot/ai/runpod.py +++ b/matrix_pygmalion_bot/ai/runpod.py @@ -279,13 +279,17 @@ async def generate_image_automatic(input_prompt: str, negative_prompt: str, api_ "prompt": input_prompt, "nagative_prompt": negative_prompt, "steps": 25, + "cfg_scale": 7, "seed": -1, "width": 512, "height": 768, "batch_size": 3, +# "sampler_index": "DPM++ 2M Karras", # "enable_hr": True, # "hr_scale": 2, -# "hr_upscaler": "ESRGAN_4x", +# "hr_upscaler": "ESRGAN_4x", # "Latent" +# "denoising_strength": 0.5, +# "hr_second_pass_steps": 15, "restore_faces": True, # "gfpgan_visibility": 0.5, # "codeformer_visibility": 0.5, @@ -307,6 +311,7 @@ async def generate_image_automatic(input_prompt: str, negative_prompt: str, api_ "nagative_prompt": negative_prompt, "steps": 20, "seed": -1, + #"sampler_index": "Euler", # tile_width, tile_height, mask_blur, padding, seams_fix_width, seams_fix_denoise, seams_fix_padding, upscaler_index, save_upscaled_image, redraw_mode, save_seams_fix_image, seams_fix_mask_blur, seams_fix_type, target_size_type, custom_width, custom_height, custom_scale # "script_args": ["",512,0,8,32,64,0.275,32,3,False,0,True,8,3,2,1080,1440,1.875], # "script_name": "Ultimate SD upscale",