* The link pointed to https://github.com/invoke-ai/InvokeAI/blob/main/notebooks/Stable-Diffusion-local-Windows.ipynb which does not exist so it has been replaced with https://github.com/invoke-ai/InvokeAI/blob/main/notebooks/Stable_Diffusion_AI_Notebook.ipynb * Add buttons for running on Colab * Tried adding running InvokeAI on Binder but the error was: ERROR: Ignored the following versions that require a different python version: 0.55.2 Requires-Python <3.5 ERROR: Could not find a version that satisfies the requirement clipseg (from invokeai) (from versions: none) ERROR: No matching distribution found for clipseg Removing intermediate container 25be65428187 The command '/bin/sh -c ${KERNEL_PYTHON_PREFIX}/bin/pip install --no-cache-dir .' returned a non-zero code: 1 `## Running Online On JupyterHub Binder [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/invoke-ai/InvokeAI/main?labpath=https%3A%2F%2Fgithub.com%2Finvoke-ai%2FInvokeAI%2Fblob%2Fmain%2Fnotebooks%2FStable_Diffusion_AI_Notebook.ipynb)` This will have to be added for having the Launch | Binder button after it runs properly.
1.2 KiB
title |
---|
Running InvokeAI on Google Colab using a Jupyter Notebook |
Introduction
We have a Jupyter notebook with cell-by-cell installation steps. It will download the code in this repo as one of the steps, so instead of cloning this repo, simply download the notebook from the link above and load it up in VSCode (with the appropriate extensions installed)/Jupyter/JupyterLab and start running the cells one-by-one.
!!! Note "you will need NVIDIA drivers, Python 3.10, and Git installed beforehand"
Running Online On Google Colabotary
Running Locally (Cloning)
-
Install the Jupyter Notebook python library (one-time): pip install jupyter
-
Clone the InvokeAI repository: git clone https://github.com/invoke-ai/InvokeAI.git cd invoke-ai
-
Create a virtual environment using conda: conda create -n invoke jupyter
-
Activate the environment and start the Jupyter notebook: conda activate invoke jupyter notebook