|
40 | 40 | "outputs": [],
|
41 | 41 | "source": [
|
42 | 42 | "%%cmd\n",
|
43 |
| - "git clone https://github.com/lstein/stable-diffusion.git" |
44 |
| - ] |
45 |
| - }, |
46 |
| - { |
47 |
| - "cell_type": "code", |
48 |
| - "execution_count": null, |
49 |
| - "metadata": {}, |
50 |
| - "outputs": [], |
51 |
| - "source": [ |
52 |
| - "%cd stable-diffusion" |
53 |
| - ] |
54 |
| - }, |
55 |
| - { |
56 |
| - "cell_type": "code", |
57 |
| - "execution_count": null, |
58 |
| - "metadata": {}, |
59 |
| - "outputs": [], |
60 |
| - "source": [ |
61 |
| - "%%writefile requirements.txt\n", |
62 |
| - "albumentations==0.4.3\n", |
63 |
| - "einops==0.3.0\n", |
64 |
| - "huggingface-hub==0.8.1\n", |
65 |
| - "imageio-ffmpeg==0.4.2\n", |
66 |
| - "imageio==2.9.0\n", |
67 |
| - "kornia==0.6.0\n", |
68 |
| - "# pip will resolve the version which matches torch\n", |
69 |
| - "numpy\n", |
70 |
| - "omegaconf==2.1.1\n", |
71 |
| - "opencv-python==4.6.0.66\n", |
72 |
| - "pillow==9.2.0\n", |
73 |
| - "pip>=22\n", |
74 |
| - "pudb==2019.2\n", |
75 |
| - "pytorch-lightning==1.4.2\n", |
76 |
| - "streamlit==1.12.0\n", |
77 |
| - "# \"CompVis/taming-transformers\" doesn't work\n", |
78 |
| - "# ldm\\models\\autoencoder.py\", line 6, in <module>\n", |
79 |
| - "# from taming.modules.vqvae.quantize import VectorQuantizer2 as VectorQuantizer\n", |
80 |
| - "# ModuleNotFoundError\n", |
81 |
| - "taming-transformers-rom1504==0.0.6\n", |
82 |
| - "test-tube>=0.7.5\n", |
83 |
| - "torch-fidelity==0.3.0\n", |
84 |
| - "torchmetrics==0.6.0\n", |
85 |
| - "transformers==4.19.2\n", |
86 |
| - "git+https://github.com/openai/CLIP.git@main#egg=clip\n", |
87 |
| - "git+https://github.com/lstein/k-diffusion.git@master#egg=k-diffusion\n", |
88 |
| - "# No CUDA in PyPi builds\n", |
89 |
| - "--extra-index-url https://download.pytorch.org/whl/cu113 --trusted-host https://download.pytorch.org\n", |
90 |
| - "torch==1.11.0\n", |
91 |
| - "# Same as numpy - let pip do its thing\n", |
92 |
| - "torchvision\n", |
93 |
| - "-e .\n" |
| 43 | + "git clone https://github.com/lstein/stable-diffusion.git\n", |
| 44 | + "cd /content/stable-diffusion/\n", |
| 45 | + "git checkout --quiet development" |
94 | 46 | ]
|
95 | 47 | },
|
96 | 48 | {
|
|
100 | 52 | "outputs": [],
|
101 | 53 | "source": [
|
102 | 54 | "%%cmd\n",
|
103 |
| - "pew new --python 3.10 -r requirements.txt --dont-activate ldm" |
| 55 | + "pew new --python 3.10 -r requirements-lin-win-colab-CUDA.txt --dont-activate stable-diffusion" |
104 | 56 | ]
|
105 | 57 | },
|
106 | 58 | {
|
107 | 59 | "cell_type": "markdown",
|
108 | 60 | "metadata": {},
|
109 | 61 | "source": [
|
110 |
| - "# Switch the notebook kernel to the new 'ldm' environment!\n", |
| 62 | + "# Switch the notebook kernel to the new 'stable-diffusion' environment!\n", |
111 | 63 | "\n",
|
112 | 64 | "## VSCode: restart VSCode and come back to this cell\n",
|
113 | 65 | "\n",
|
114 | 66 | "1. Ctrl+Shift+P\n",
|
115 | 67 | "1. Type \"Select Interpreter\" and select \"Jupyter: Select Interpreter to Start Jupyter Server\"\n",
|
116 | 68 | "1. VSCode will say that it needs to install packages. Click the \"Install\" button.\n",
|
117 | 69 | "1. Once the install is finished, do 1 & 2 again\n",
|
118 |
| - "1. Pick 'ldm'\n", |
| 70 | + "1. Pick 'stable-diffusion'\n", |
119 | 71 | "1. Run the following cell"
|
120 | 72 | ]
|
121 | 73 | },
|
|
136 | 88 | "## Jupyter/JupyterLab\n",
|
137 | 89 | "\n",
|
138 | 90 | "1. Run the cell below\n",
|
139 |
| - "1. Click on the toolbar where it says \"(ipyknel)\" ↗️. You should get a pop-up asking you to \"Select Kernel\". Pick 'ldm' from the drop-down.\n" |
| 91 | + "1. Click on the toolbar where it says \"(ipyknel)\" ↗️. You should get a pop-up asking you to \"Select Kernel\". Pick 'stable-diffusion' from the drop-down.\n" |
140 | 92 | ]
|
141 | 93 | },
|
142 | 94 | {
|
|
154 | 106 | "source": [
|
155 | 107 | "# DO NOT RUN THIS CELL IF YOU ARE USING VSCODE!!\n",
|
156 | 108 | "%%cmd\n",
|
157 |
| - "pew workon ldm\n", |
| 109 | + "pew workon stable-diffusion\n", |
158 | 110 | "pip3 install ipykernel\n",
|
159 |
| - "python -m ipykernel install --name=ldm" |
| 111 | + "python -m ipykernel install --name=stable-diffusion" |
160 | 112 | ]
|
161 | 113 | },
|
162 | 114 | {
|
|
231 | 183 | "Now:\n",
|
232 | 184 | "\n",
|
233 | 185 | "1. `cd` to wherever the 'stable-diffusion' directory is\n",
|
234 |
| - "1. Run `pew workon ldm`\n", |
| 186 | + "1. Run `pew workon stable-diffusion`\n", |
235 | 187 | "1. Run `winpty python scripts\\dream.py`"
|
236 | 188 | ]
|
237 | 189 | }
|
|
0 commit comments