mirror of
https://github.com/lucidrains/DALLE2-pytorch.git
synced 2025-12-19 17:54:20 +01:00
prep for classifier free guidance for the image embedding diffusion step, even though not mentioned in paper
This commit is contained in:
@@ -169,6 +169,7 @@ class DiffusionPriorNetwork(nn.Module):
|
|||||||
text_encodings,
|
text_encodings,
|
||||||
text_embed,
|
text_embed,
|
||||||
mask = None,
|
mask = None,
|
||||||
|
cond_drop_prob = 0.2
|
||||||
):
|
):
|
||||||
batch = image_embed.shape[0]
|
batch = image_embed.shape[0]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user