mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-20 18:08:00 +02:00
Update use_cpu using UI on Redo and Double Size
This commit is contained in:
parent
8cb408bc6e
commit
4f5a352985
@ -418,7 +418,10 @@ function getStartNewTaskHandler(reqBody, imageItemElem, mode) {
|
|||||||
switch (mode) {
|
switch (mode) {
|
||||||
case 'img2img':
|
case 'img2img':
|
||||||
case 'img2img_X2':
|
case 'img2img_X2':
|
||||||
newTaskRequest.reqBody = Object.assign({}, reqBody, { num_outputs: 1 })
|
newTaskRequest.reqBody = Object.assign({}, reqBody, {
|
||||||
|
num_outputs: 1,
|
||||||
|
use_cpu: useCPUField.checked,
|
||||||
|
})
|
||||||
if (!newTaskRequest.reqBody.init_image || mode === 'img2img_X2') {
|
if (!newTaskRequest.reqBody.init_image || mode === 'img2img_X2') {
|
||||||
newTaskRequest.reqBody.sampler = 'ddim'
|
newTaskRequest.reqBody.sampler = 'ddim'
|
||||||
newTaskRequest.reqBody.prompt_strength = '0.5'
|
newTaskRequest.reqBody.prompt_strength = '0.5'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user