diff options
author | xucj98 <975114697@qq.com> | 2022-11-25 09:07:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-25 09:07:00 +0000 |
commit | 263b323de12eb2444b0818105575a2bc69ab0344 (patch) | |
tree | 7bc4a7802bdaba21550ad281cc08c3fc1037b074 /modules/img2img.py | |
parent | d20dbe47e06de7f6c0e65242a04c9bb1410ef7cb (diff) | |
parent | 828438b4a190759807f9054932cae3a8b880ddf1 (diff) | |
download | stable-diffusion-webui-gfx803-263b323de12eb2444b0818105575a2bc69ab0344.tar.gz stable-diffusion-webui-gfx803-263b323de12eb2444b0818105575a2bc69ab0344.tar.bz2 stable-diffusion-webui-gfx803-263b323de12eb2444b0818105575a2bc69ab0344.zip |
Merge branch 'AUTOMATIC1111:master' into draft
Diffstat (limited to 'modules/img2img.py')
-rw-r--r-- | modules/img2img.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/img2img.py b/modules/img2img.py index be9f3653..9fc5b693 100644 --- a/modules/img2img.py +++ b/modules/img2img.py @@ -6,7 +6,7 @@ import traceback import numpy as np
from PIL import Image, ImageOps, ImageChops
-from modules import devices
+from modules import devices, sd_samplers
from modules.processing import Processed, StableDiffusionProcessingImg2Img, process_images
from modules.shared import opts, state
import modules.shared as shared
@@ -99,7 +99,7 @@ def img2img(mode: int, prompt: str, negative_prompt: str, prompt_style: str, pro seed_resize_from_h=seed_resize_from_h,
seed_resize_from_w=seed_resize_from_w,
seed_enable_extras=seed_enable_extras,
- sampler_index=sampler_index,
+ sampler_index=sd_samplers.samplers_for_img2img[sampler_index].name,
batch_size=batch_size,
n_iter=n_iter,
steps=steps,
|