prep for classifier free guidance for the image embedding diffusion step, even though not mentioned in paper

This commit is contained in:
Phil Wang
2022-04-12 12:57:09 -07:00
parent 59b8abe09e
commit 7647be2569

View File

@@ -169,6 +169,7 @@ class DiffusionPriorNetwork(nn.Module):
text_encodings,
text_embed,
mask = None,
cond_drop_prob = 0.2
):
batch = image_embed.shape[0]