Browse Source

more stable diffusion parameters

master
Hendrik Langer 2 years ago
parent
commit
ec05073000
  1. 7
      matrix_pygmalion_bot/ai/runpod.py

7
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, "prompt": input_prompt,
"nagative_prompt": negative_prompt, "nagative_prompt": negative_prompt,
"steps": 25, "steps": 25,
"cfg_scale": 7,
"seed": -1, "seed": -1,
"width": 512, "width": 512,
"height": 768, "height": 768,
"batch_size": 3, "batch_size": 3,
# "sampler_index": "DPM++ 2M Karras",
# "enable_hr": True, # "enable_hr": True,
# "hr_scale": 2, # "hr_scale": 2,
# "hr_upscaler": "ESRGAN_4x", # "hr_upscaler": "ESRGAN_4x", # "Latent"
# "denoising_strength": 0.5,
# "hr_second_pass_steps": 15,
"restore_faces": True, "restore_faces": True,
# "gfpgan_visibility": 0.5, # "gfpgan_visibility": 0.5,
# "codeformer_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, "nagative_prompt": negative_prompt,
"steps": 20, "steps": 20,
"seed": -1, "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 # 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_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", # "script_name": "Ultimate SD upscale",

Loading…
Cancel
Save