mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-05 06:39:02 +02:00
Merge branch 'main' into mod-thumbnails
This commit is contained in:
commit
342f5e5e41
@ -523,6 +523,9 @@ def _txt2img(opt_W, opt_H, opt_n_samples, opt_ddim_steps, opt_scale, start_code,
|
|||||||
while torch.cuda.memory_allocated() / 1e6 >= mem:
|
while torch.cuda.memory_allocated() / 1e6 >= mem:
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
|
if sampler_name == 'ddim':
|
||||||
|
model.make_schedule(ddim_num_steps=opt_ddim_steps, ddim_eta=opt_ddim_eta, verbose=False)
|
||||||
|
|
||||||
samples_ddim = model.sample(
|
samples_ddim = model.sample(
|
||||||
S=opt_ddim_steps,
|
S=opt_ddim_steps,
|
||||||
conditioning=c,
|
conditioning=c,
|
||||||
|
Loading…
Reference in New Issue
Block a user