You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -1049,8 +1049,8 @@ Once built, images will be saved to the same directory the command is invoked
1049
1049
-[x] test out grid attention in cascading ddpm locally, decide whether to keep or remove https://arxiv.org/abs/2204.01697 (keeping, seems to be fine)
1050
1050
-[x] allow for unet to be able to condition non-cross attention style as well
1051
1051
-[x] speed up inference, read up on papers (ddim)
1052
-
-[] add inpainting ability using resampler from repaint paper https://arxiv.org/abs/2201.09865
1053
-
-[ ]become an expert with unets, cleanup unet code, make it fully configurable, port all learnings over to https://github.com/lucidrains/x-unet (test out unet² in ddpm repo) - consider https://github.com/lucidrains/uformer-pytorch attention-based unet
1052
+
-[x] add inpainting ability using resampler from repaint paper https://arxiv.org/abs/2201.09865
1053
+
-[ ]try out the nested unet from https://arxiv.org/abs/2005.09007 after hearing several positive testimonies from researchers, for segmentation anyhow
1054
1054
-[ ] interface out the vqgan-vae so a pretrained one can be pulled off the shelf to validate latent diffusion + DALL-E2
assertself.unconditionalorexists(image_embed), 'image embed must be present on sampling from decoder unless if trained unconditionally'
2590
2660
@@ -2598,6 +2668,8 @@ def sample(
2598
2668
assertnot (self.condition_on_text_encodingsandnotexists(text_encodings)), 'text or text encodings must be passed into decoder if specified'
2599
2669
assertnot (notself.condition_on_text_encodingsandexists(text_encodings)), 'decoder specified not to be conditioned on text, yet it is presented'
2600
2670
2671
+
assertnot (exists(inpaint_image) ^exists(inpaint_mask)), 'inpaint_image and inpaint_mask (boolean mask of [batch, height, width]) must be both given for inpainting'
0 commit comments