Fix the broken 'Make Similar Images' button

This commit is contained in:
cmdr2 2023-02-03 21:40:03 +05:30
parent db47888a75
commit 78e917a6fb
2 changed files with 4 additions and 2 deletions

View File

@ -65,6 +65,8 @@ def generate_images_internal(req: GenerateImageRequest, task_data: TaskData, dat
callback = make_step_callback(req, task_data, data_queue, task_temp_images, step_callback, stream_image_progress)
try:
if req.init_image is not None: req.sampler_name = 'ddim'
images = generate_images(context, callback=callback, **req.dict())
user_stopped = False
except UserInitiatedStop:

View File

@ -718,7 +718,7 @@
"height": 'number',
"seed": 'number',
"sampler": 'string',
"sampler_name": 'string',
"use_stable_diffusion_model": 'string',
"num_inference_steps": 'number',
"guidance_scale": 'number',
@ -731,7 +731,7 @@
"output_quality": 'number',
}
const TASK_DEFAULTS = {
"sampler": "plms",
"sampler_name": "plms",
"use_stable_diffusion_model": "sd-v1-4",
"num_inference_steps": 50,
"guidance_scale": 7.5,