Skip to main content

Running Colab [Outdated]

danger

Colab started stopping processes with WebUi, and in some cases blocking users from accessing the platform.


Google Colaboratory is Google's free interactive cloud-based code environment. You need the service to write code in a jupyter notebook. It functions on the principle of the cloud, which allows a whole team to work on one project

In our case, its a free GPU server to run WebUi, and generate images.

Import models

To generate pictures, you need at least one model. You can find it yourself (.ckpt or .safetensors), and upload it to your Gdrive. Or, you can create a shortcut to my folder and get several models at once without wasting disk space. If you`re not going to use my folder, skip to the next step.

Open this link and create a shortcut to this folder on your google drive.

image

Launching the colab

Go to the colab page and start the first cell

image

Accept the fact that google doesn't know this notebook, and mount your google drive.

image

Start both of the following cells. The first of these will install WebUi, and the second will install everything that is required for it to work.

image

Now we need to show WebUi where the models are located. In the panel on the right side is a folder icon, click on it, go to gdrive > MyDrive and copy the path to the previously made shortcut / folder where you duploaded the model(s)

image

Insert this path in the Path_to_MODEL field of the Model Download/Load cell, then run it

image

Start the last cell and wait for the link to your WebUi

image