DALL-E
DALL-E copied to clipboard
Google collab?
Pls somebody make a google collab version
https://github.com/openai/DALL-E/blob/master/notebooks/usage.ipynb
https://colab.research.google.com/drive/1VdirQQxZFPmpiktWYvZxS7lJJTHqJYdA?usp=sharing
https://colab.research.google.com/github/openai/DALL-E/blob/master/notebooks/usage.ipynb
https://colab.research.google.com/drive/1KA2w8bA9Q1HDiZf5Ow_VNOrTaWW4lXXG?usp=sharing
Then, optionally, toggle ON the GPU support in the notebook settings, and edit two lines of code:
- From:
# This can be changed to a GPU, e.g. 'cuda:0'.
dev = torch.device('cpu')
to:
dev = torch.device('cuda:0')
- From:
z_logits = enc(x)
to:
z_logits = enc(x.cuda())
Finally, create a new cell and install DALL-E:
%pip install git+https://github.com/openai/DALL-E.git
Restart the runtime if needed, and you are set to play with the notebook now. Typically, <Ctrl+F9>
to run everything.
crucially dev = torch.device('cuda:0')
is not enough for GPU support.
z_logits = enc(x.cuda())
does the trick though.
crucially
dev = torch.device('cuda:0')
is not enough for GPU support.z_logits = enc(x.cuda())
does the trick though.
Using x.to(dev) might be a more compatible way.
Is there a sample for actually using text? It isn't obvious from the example how this is handled.
Is there a sample for actually using text? It isn't obvious from the example how this is handled.
https://github.com/openai/DALL-E/issues/13#issuecomment-792569253
Lol I came from the "Papers with Code" website, thinking there would "code". @woctezuma Now I have to read the paper to see if it's not another OpenAI pump 🤡😭 https://github.com/openai/DALL-E/issues/13#issuecomment-792569253
Check out this article - it has 3 very interesting implementations (the last one is DALL-E) that should show you how.
how can we use this package "dall e" in colab to image generation by text sampling. is there code sample or tutorial ?
I think OpenAI is gradually rolling out access to Dalle version 2 via a waiting list
how can we use this package "dall e" in colab to image generation by text sampling. is there code sample or tutorial ?
- https://github.com/openai/DALL-E/issues/17
I believe it is better to use other repositories though. For instance: https://github.com/Jack000/glid-3-xl