Skip to content

Commit e3c8036

Browse files
committed
fix logits in classifier free guidance example, thanks to @youngwoo-yoon
1 parent b8f8e40 commit e3c8036

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

denoising_diffusion_pytorch/classifier_free_guidance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def forward_with_cond_scale(
377377
cond_scale = 1.,
378378
**kwargs
379379
):
380-
logits = self.forward(*args, **kwargs)
380+
logits = self.forward(*args, cond_drop_prob = 0., **kwargs)
381381

382382
if cond_scale == 1:
383383
return logits
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.5.3'
1+
__version__ = '1.5.4'

0 commit comments

Comments
 (0)