Skip to content

Commit 264554b

Browse files
committed
update default values
1 parent ad32e15 commit 264554b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

webuiapi/webuiapi.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def _to_api_result(self, response):
162162

163163
def txt2img(self,
164164
enable_hr=False,
165-
denoising_strength=0.0,
165+
denoising_strength=0.7,
166166
firstphase_width=0,
167167
firstphase_height=0,
168168
hr_scale=2,
@@ -175,8 +175,8 @@ def txt2img(self,
175175
seed=-1,
176176
subseed=-1,
177177
subseed_strength=0.0,
178-
seed_resize_from_h=-1,
179-
seed_resize_from_w=-1,
178+
seed_resize_from_h=0,
179+
seed_resize_from_w=0,
180180
sampler_name=None, # use this instead of sampler_index
181181
batch_size=1,
182182
n_iter=1,
@@ -279,8 +279,8 @@ def img2img(self,
279279
seed=-1,
280280
subseed=-1,
281281
subseed_strength=0,
282-
seed_resize_from_h=-1,
283-
seed_resize_from_w=-1,
282+
seed_resize_from_h=0,
283+
seed_resize_from_w=0,
284284
sampler_name=None, # use this instead of sampler_index
285285
batch_size=1,
286286
n_iter=1,

0 commit comments

Comments
 (0)