Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove workspace file from path #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions dreambooth_ion_cannon.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"source": [
"import os\n",
"\n",
"prereq_pass_file = '/workspace/Dreambooth-Ion-Cannon/install_done'\n",
"prereq_pass_file = '/Dreambooth-Ion-Cannon/install_done'\n",
"packages_installed = os.path.exists(prereq_pass_file)\n",
"print('Packages installed?: ' + str(packages_installed))\n",
"\n",
Expand Down Expand Up @@ -211,7 +211,7 @@
},
"outputs": [],
"source": [
"model_path = '/workspace/Dreambooth-Ion-Cannon/model.ckpt'\n",
"model_path = '/Dreambooth-Ion-Cannon/model.ckpt'\n",
"valid_model_size = 4265380512 # doing this instead of SHA256 checksum, it's quicker\n",
"\n",
"already_exists = os.path.exists(model_path)\n",
Expand All @@ -230,12 +230,12 @@
"\n",
" import multivolumefile\n",
" import py7zr\n",
" with multivolumefile.open('/workspace/Dreambooth-Ion-Cannon/Stable-Diffusion-1.4/model.7z', mode='rb') as target_archive:\n",
" with multivolumefile.open('/Dreambooth-Ion-Cannon/Stable-Diffusion-1.4/model.7z', mode='rb') as target_archive:\n",
" with py7zr.SevenZipFile(target_archive, 'r') as archive:\n",
" archive.extractall()\n",
" \n",
" # Remove repository and contents so git doesn't complain if it needs to rerun\n",
" !rm -rf '/workspace/Dreambooth-Ion-Cannon/Stable-Diffusion-1.4'"
" !rm -rf '/Dreambooth-Ion-Cannon/Stable-Diffusion-1.4'"
]
},
{
Expand Down Expand Up @@ -291,10 +291,10 @@
" --base configs/stable-diffusion/v1-finetune_unfrozen.yaml \\\n",
" -t \\\n",
" --actual_resume \"model.ckpt\" \\\n",
" --reg_data_root \"/workspace/Dreambooth-Ion-Cannon/regularisation_images\" \\\n",
" --reg_data_root \"/Dreambooth-Ion-Cannon/regularisation_images\" \\\n",
" -n {project_name} \\\n",
" --gpus 0, \\\n",
" --data_root \"/workspace/Dreambooth-Ion-Cannon/training_samples\" \\\n",
" --data_root \"/Dreambooth-Ion-Cannon/training_samples\" \\\n",
" --max_training_steps 1000 \\\n",
" --no-test"
]
Expand Down Expand Up @@ -336,7 +336,7 @@
"metadata": {},
"outputs": [],
"source": [
"model_path = f\"/workspace/Dreambooth-Ion-Cannon/trained_models/{model_name}\""
"model_path = f\"/Dreambooth-Ion-Cannon/trained_models/{model_name}\""
]
},
{
Expand Down