question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(Suggestion) Include more useful parameters as form inputs in colab

See original GitHub issue

I’ve included these form inputs in my personal copy of your Colab notebook. In particular, reducing the image_width parameter allows for one to vastly increase the number of hidden_layers. By going to an image_width of 256 (instead of the default 512) I was able to run 32 hidden layers without problems on a T4.

from tqdm import trange
from IPython.display import Image, display

from deep_daze import Imagine

TEXT = 'blue marshmallow' #@param {type:"string"}
NUM_LAYERS = 16 #@param {type:"number"}
SAVE_EVERY =  20#@param {type:"number"}
IMAGE_WIDTH = 512 #@param {type:"number"}
SAVE_PROGRESS = False #@param {type:"boolean"}
LEARNING_RATE = 1e-5 #@param {type:"number"}
ITERATIONS = 1050 #@param {type:"number"}

model = Imagine(
    text = TEXT,
    num_layers = NUM_LAYERS,
    save_every = SAVE_EVERY,
    image_width = IMAGE_WIDTH,
    lr = LEARNING_RATE,
    iterations = ITERATIONS,
    save_progress = SAVE_PROGRESS
)

Feel free to include them in your copy if you’d like to.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lucidrainscommented, Jan 19, 2021

@afiaka87 i barely squeak by with 10 / 11 GB usage, so you may have to tweak your layers, batch size, or gradient accumulation steps, but which are all accessible through the CLI https://github.com/lucidrains/deep-daze/blob/main/deep_daze/cli.py#L9-L11

1reaction
afiaka87commented, Jan 19, 2021

I’m on colab pro myself. As for non-pro users, I have a friend who worked on this notebook all day. He ran it all day and kept getting a T4 (16 GiB vram) which is obviously more than enough. Your success on your 2080TI (nice card, btw) has inspired me to get it running locally on my 8GB 2070 Super.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it possible to have autocomplete in a notebook in Google ...
By autocomplete I mean having something like Intellisense in VS Code by which I can see available functions or members in a particular...
Read more >
10 tricks for a better Google Colab experience
10 tricks for a better Google Colab experience · Save time with keyboard shortcuts · Mount your Google Drive to Colab · Run...
Read more >
Forms - Colaboratory - Google Colab
Forms provide an easy way to parameterize code. From a code cell, select Insert → Add form field. When you change the value...
Read more >
Suggestion for Colab Forms · Issue #116 - GitHub
I notice the Colab forms allows users to use widget to change hyper parameters. Is there any way to create a form with...
Read more >
Google Colab - Adding Forms
Colab provides a very useful utility called Forms that allows you to accept inputs from the user at runtime. Let us now move...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found