Fooocus is one of the best software packages to use Stable Diffusion. In this tutorial, we will going over steps to use Fooocus on Google Colab. Steps are very straightforward. Let’s dive in.
Steps
In order to follow these steps, you need to have a Google account (such as a Gmail account). If you haven’t, get it first. While you are logged in your Google account, access https://colab.research.google.com/github/lllyasviel/Fooocus/blob/main/fooocus_colab.ipynb
It will be handy if you save the notebook in your Google drive in case you want to modify the script. For example, if you want to generate anime images, you need to change the code a little, so let’s click Copy to Drive
:
Once the copy is done, you will see the below dialog. Click Open in new tab.
You should see below in the new browser tab.
If you want, you can change the title of the notebook by clicking the title field (e.g. My copy of …). Click the Play button (triangle) to start Fooocus:
You have to wait a while while Fooocus is getting ready. Once you see a message “App started successful.”, click the link that is shown at the end of the message (the URL that ends with gradio.live). Note that this URL changes each time you start Fooocus.
You should see the following screen:
Now enter “Beautiful roses on the kitchen counter
” on the text field at the bottom (this is called a prompt) and press Generate
.
Congratulations. You were able to successfully generate images using Fooocus.
Once you are done, go back to the notebook tab on your browser, and press the stop button to stop Fooocus.
If you want to generate anime images, you need to modify the code a little bit. Check out our tutorial: Why does Fooocus seem to refuse to generate anime images? – A New User’s Guide.
References
[1] lllyasviel. Fooocus. Retrieved from https://github.com/lllyasviel/Fooocus