Skip to content

Run Stable Diffusion with Google Colab / Kaggle

License

Notifications You must be signed in to change notification settings

UjhhgtgTeams/sd-easylized-colab

Repository files navigation

Stable Diffusion Easylized

Want to try out Stable Diffusion but your computer is potato? Don't worry, because this notebook is here to help. "Borrow" Google / Kaggle's servers and run it there.

Disclaimer: This kind of use is currently restricted by Google / Kaggle if you don't have a paid plan. Although no bans are planned, your session may be terminated / deleted at any time. For more information on this, please refer to here and here.

Usage

Please note that the Kaggle version may be slightly not up-to-date.

Google Colab

  1. Open this notebook on Google Colab.
  2. Log in to your Google account.
  3. Tweak the options.
  4. Click Runtime->Run All in the menu bar.
  5. (Grant the notebook your Google Drive's access if necessary.)
  6. Wait until a link pops up in the code output and open it. (it will take a few ten seconds for the link to be reachable.)

Kaggle

  1. Go to Kaggle.
  2. Log in to your Kaggle account.
  3. Click Create.
  4. In the menu bar, click File->Import Notebook->GitHub.
  5. Fill in UjhhgtgTeams/sd-easylized-colab and stable-diffusion-easylized-kaggle-version.ipynb.
  6. Click Import.
  7. Tweak the options.
  8. Click Run All in the menu bar.
  9. Wait until a link pops up in the code output and open it. (it will take a few ten seconds for the link to be reachable.)

Known Bugs

  • It takes years for Colab to compile xformers (which is used to speed up image generation) so this procedure is currently disabled.
    Solution: You can install it from PyPi for now (available in the config).
  • Kaggle will not enable GPUs, the Internet, package updates and data persistence for notebooks by default.
    Solution: In the bar on the right, look for Notebook Options and set the options as below:
Accelerator: GPU T4 * 2
Language: Python
Persistence: Variables and Files
Environment: Always use latest environment
Internet: On

If you couldn't find the options to enable GPUs and the Internet, verify your phone number.

Contributing

If you would like to help me improve this project or fix bugs, feel free to raise an issue or make a PR. Thanks!

About

Run Stable Diffusion with Google Colab / Kaggle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published