Skip to content

Commit 9d0e22b

Browse files
author
David Tan
committed
Fix checkbox size and DDIM/PLMS not starting
Thresholding not implemented for VanillaStableDiffusionSamplers DDIM/PLMS.
1 parent 851e1fa commit 9d0e22b

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

modules/sd_samplers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def initialize(self, p):
205205
self.mask = p.mask if hasattr(p, 'mask') else None
206206
self.nmask = p.nmask if hasattr(p, 'nmask') else None
207207

208-
def sample_img2img(self, p, x, noise, conditioning, unconditional_conditioning, steps=None, image_conditioning=None):
208+
def sample_img2img(self, p, x, noise, conditioning, unconditional_conditioning, steps=None, image_conditioning=None, mimic_scale=None, threshold_percentile=None, threshold_enable=Fals):
209209
steps, t_enc = setup_img2img_steps(p, steps)
210210

211211
self.initialize(p)
@@ -232,7 +232,7 @@ def sample_img2img(self, p, x, noise, conditioning, unconditional_conditioning,
232232

233233
return samples
234234

235-
def sample(self, p, x, conditioning, unconditional_conditioning, steps=None, image_conditioning=None):
235+
def sample(self, p, x, conditioning, unconditional_conditioning, steps=None, image_conditioning=None, mimic_scale=None, threshold_percentile=None, threshold_enable=False):
236236
self.initialize(p)
237237

238238
self.init_latent = None

style.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,23 +88,23 @@
8888
gap: 0.5rem;
8989
}
9090

91-
#subseed_show_box{
91+
#subseed_show_box, #threshold_show_box{
9292
min-width: auto;
9393
flex-grow: 0;
9494
}
9595

96-
#subseed_show_box > div{
96+
#subseed_show_box > div, #threshold_show_box > div{
9797
border: 0;
9898
height: 100%;
9999
}
100100

101-
#subseed_show{
101+
#subseed_show, #threshold_show{
102102
min-width: auto;
103103
flex-grow: 0;
104104
padding: 0;
105105
}
106106

107-
#subseed_show label{
107+
#subseed_show label, #threshold_show label{
108108
height: 100%;
109109
}
110110

0 commit comments

Comments
 (0)