|
15 | 15 | }
|
16 | 16 | },
|
17 | 17 | "cells": [
|
| 18 | + { |
| 19 | + "cell_type": "code", |
| 20 | + "execution_count": null, |
| 21 | + "outputs": [], |
| 22 | + "source": [ |
| 23 | + "#@title Load repo (if needed)\n", |
| 24 | + "!git clone https://github.com/JoePenna/Dreambooth-Stable-Diffusion\n", |
| 25 | + "%cd Dreambooth-Stable-Diffusion" |
| 26 | + ], |
| 27 | + "metadata": { |
| 28 | + "collapsed": false |
| 29 | + } |
| 30 | + }, |
18 | 31 | {
|
19 | 32 | "cell_type": "code",
|
20 | 33 | "execution_count": null,
|
|
24 | 37 | "outputs": [],
|
25 | 38 | "source": [
|
26 | 39 | "#@title BUILD ENV\n",
|
27 |
| - "!git clone https://github.com/JoePenna/Dreambooth-Stable-Diffusion\n", |
28 |
| - "%cd Dreambooth-Stable-Diffusion\n", |
29 |
| - "\n", |
30 |
| - "!git checkout feature/google-colab-notebook\n", |
31 |
| - "\n", |
32 | 40 | "!pip install omegaconf\n",
|
33 | 41 | "!pip install einops\n",
|
34 | 42 | "!pip install pytorch-lightning==1.6.5\n",
|
|
50 | 58 | "!pip install ipywidgets==7.7.1\n",
|
51 | 59 | "\n",
|
52 | 60 | "import os\n",
|
53 |
| - "os._exit(00)\n" |
| 61 | + "os._exit(00)" |
54 | 62 | ]
|
55 | 63 | },
|
56 | 64 | {
|
|
188 | 196 | " --base configs/stable-diffusion/v1-finetune_unfrozen.yaml \\\n",
|
189 | 197 | " -t \\\n",
|
190 | 198 | " --actual_resume \"model.ckpt\" \\\n",
|
191 |
| - " --reg_data_root {reg_data_root} \\\n", |
192 |
| - " -n {project_name} \\\n", |
| 199 | + " --reg_data_root \"{reg_data_root}\" \\\n", |
| 200 | + " -n \"{project_name}\" \\\n", |
193 | 201 | " --gpus 0, \\\n",
|
194 | 202 | " --data_root \"/content/Dreambooth-Stable-Diffusion/training_images\" \\\n",
|
195 | 203 | " --max_training_steps {max_training_steps} \\\n",
|
196 |
| - " --class_word {class_word} \\\n", |
197 |
| - " --token {token} \\\n", |
| 204 | + " --class_word \"{class_word}\" \\\n", |
| 205 | + " --token \"{token}\" \\\n", |
198 | 206 | " --no-test"
|
199 | 207 | ],
|
200 | 208 | "metadata": {
|
|
0 commit comments