-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notebook tweaks for Google Colab #7
Comments
Sadly, Google Colab runs out of memory. :'(
I suspect one has to decrease the number of candidates |
I have set both values to 16 for a try in: with plot_output:
sampling(prompt=wd_text.value,
top_k=slider_topk.value,
softmax_temperature=slider_temp.value,
seed=slider_seed.value,
num_candidates=16,
num_samples_for_display=16) There is another error on Colab which is triggered when executing: display(plot_output)
I guess I truly had to run: %pip install -q -r requirements.txt |
Thanks for your interest in our project ! You can adjust the number of candidates for the image generation according to the memory size of used GPUs (please refer to #1). As you mention, |
Here is a working Colab notebook, in case someone is looking for one. |
Nice job! :) Sadly, I have only had K80 GPU on Colab for my few tries, so I cannot try the notebook right now. I don't close the issue for now so that you get more visibility! :D |
here is my notebook https://colab.research.google.com/drive/1TqH6rQy_SQULFURIssVm8RLvi7tLRLFR?usp=sharing it worked on K80 it have batching and generate 16 images / 3 mins |
For info, on Google Colab, the provided notebook
examples/sampling_interactive_demo.ipynb
has to be slightly edited.One has to:
%cd /content !git clone https://github.com/kakaobrain/minDALL-E.git %cd /content/minDALL-E %pip install -q pytorch-lightning omegaconf einops tokenizers %pip install -q git+https://github.com/openai/CLIP.git
I could have run:
However, it takes a long time for no added value, as some packages are already installed on Colab.
The text was updated successfully, but these errors were encountered: