Skip to content

Commit f7c00e9

Browse files
committed
Fixing inputs with spaces not making their way into main.py
1 parent 988f327 commit f7c00e9

File tree

2 files changed

+22
-14
lines changed

2 files changed

+22
-14
lines changed

dreambooth_colab_joepenna.ipynb

+18-10
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@
1515
}
1616
},
1717
"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+
},
1831
{
1932
"cell_type": "code",
2033
"execution_count": null,
@@ -24,11 +37,6 @@
2437
"outputs": [],
2538
"source": [
2639
"#@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",
3240
"!pip install omegaconf\n",
3341
"!pip install einops\n",
3442
"!pip install pytorch-lightning==1.6.5\n",
@@ -50,7 +58,7 @@
5058
"!pip install ipywidgets==7.7.1\n",
5159
"\n",
5260
"import os\n",
53-
"os._exit(00)\n"
61+
"os._exit(00)"
5462
]
5563
},
5664
{
@@ -188,13 +196,13 @@
188196
" --base configs/stable-diffusion/v1-finetune_unfrozen.yaml \\\n",
189197
" -t \\\n",
190198
" --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",
193201
" --gpus 0, \\\n",
194202
" --data_root \"/content/Dreambooth-Stable-Diffusion/training_images\" \\\n",
195203
" --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",
198206
" --no-test"
199207
],
200208
"metadata": {

dreambooth_runpod_joepenna.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -349,13 +349,13 @@
349349
" --base configs/stable-diffusion/v1-finetune_unfrozen.yaml \\\n",
350350
" -t \\\n",
351351
" --actual_resume \"model.ckpt\" \\\n",
352-
" --reg_data_root {reg_data_root} \\\n",
353-
" -n {project_name} \\\n",
352+
" --reg_data_root \"{reg_data_root}\" \\\n",
353+
" -n \"{project_name}\" \\\n",
354354
" --gpus 0, \\\n",
355355
" --data_root \"/workspace/Dreambooth-Stable-Diffusion/training_images\" \\\n",
356356
" --max_training_steps {max_training_steps} \\\n",
357-
" --class_word {class_word} \\\n",
358-
" --token {token} \\\n",
357+
" --class_word \"{class_word}\" \\\n",
358+
" --token \"{token}\" \\\n",
359359
" --no-test"
360360
]
361361
},

0 commit comments

Comments
 (0)