aboutsummaryrefslogtreecommitdiff
path: root/modules/img2img.py
diff options
context:
space:
mode:
authorKeavon Chambers <keavon@keavon.com>2022-11-19 10:34:31 -0800
committerGitHub <noreply@github.com>2022-11-19 10:34:31 -0800
commit2f90496b19cd9c512633742db97b072a7075f017 (patch)
tree60d2dddd69172d9b5cf58c8da2bd64c61132f4fa /modules/img2img.py
parenta258fd60dbe2d68325339405a2aa72816d06d2fd (diff)
parent47a44c7e421b98ca07e92dbf88769b04c9e28f86 (diff)
Merge branch 'master' into cors-regex
Diffstat (limited to 'modules/img2img.py')
-rw-r--r--modules/img2img.py4
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,