r/MachineLearning • u/Wiskkey • Feb 25 '21
Project [P] Text-to-image Google Colab notebook "Aleph-Image: CLIPxDAll-E" has been released. This notebook uses OpenAI's CLIP neural network to steer OpenAI's DALL-E image generator to try to match a given text description.
Google Colab notebook. Twitter reference.
Update: "DALL-E image generator" in the post title is a reference to the discrete VAE (variational autoencoder) used for DALL-E. OpenAI will not release DALL-E in its entirety.
Update: A tweet from the developer, in reference to the white blotches in output images that often happen with the current version of notebook:
Well, the white blotches have disappeared; more work to be done yet, but that's not bad!
Update: Thanks to the users in the comments who suggested a temporary developer-suggested fix to reduce white blotches. To make this fix, change the line in "Latent Coordinate" that reads
normu = torch.nn.functional.gumbel_softmax(self.normu.view(1, 8192, -1), dim=-1).view(1, 8192, 64, 64)to
normu = torch.nn.functional.gumbel_softmax(self.normu.view(1, 8192, -1), dim=-1, tau = 1.5).view(1, 8192, 64, 64)by adding ", tau = 1.5" (without quotes) after "dim=-1". The higher this parameter value is, apparently the lower the chance is of white blotches, but with the tradeoff of less sharpness. Some people have suggested trying 1.2, 1.7, or 2 instead of 1.5.
I am not affiliated with this notebook or its developer.
Example using text "The boundary between consciousness and unconsciousness":

View all comments
Show parent comment
1
u/Wiskkey Feb 25 '21
The developer has reportedly fixed the white blotches issue (see update in the post), but as of this writing these changes don't seem to have been made public yet.