mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-22 16:23:28 +01:00
Fix the broken 'Make Similar Images' button
This commit is contained in:
parent
db47888a75
commit
78e917a6fb
@ -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:
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user