r/MachineLearning • • 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.

See also: List of sites/programs/projects that use OpenAI's CLIP neural network for steering image/video creation to match a text description.

Example using text "The boundary between consciousness and unconsciousness":

143 Upvotes

48 comments sorted by

View all comments

Show parent comment

2

u/uneven_piles Mar 01 '21

I also got this error when I tried it on an ipad - I'm not sure what's happening, but the way it talks about "user agent" makes me think it doesn't have to do with the neural net itself, but something to do with browser notifications/sounds/etc.

It works fine on my laptop (Chrome browser) though 🤷