Skip to content

Commit 5820f69

Browse files
authored
accept arbitrary s
1 parent 32c5250 commit 5820f69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/txt2img.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def load_model_from_config(config, ckpt, verbose=False):
118118
with torch.no_grad():
119119
with model.ema_scope():
120120
uc = None
121-
if opt.scale > 0:
121+
if opt.scale != 1.0:
122122
uc = model.get_learned_conditioning(opt.n_samples * [""])
123123
for n in trange(opt.n_iter, desc="Sampling"):
124124
c = model.get_learned_conditioning(opt.n_samples * [prompt])

0 commit comments

Comments
 (0)