Skip to content

Commit

Permalink
fix: keep_metadata default variable set to True
Browse files Browse the repository at this point in the history
  • Loading branch information
Linaqruf committed Jan 4, 2023
1 parent a7fe65d commit 89adbbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kohya-trainer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
"datasets_url = \"https://huggingface.co/datasets/Linaqruf/pixiv-niji-journey/resolve/main/nijijourney_pixiv_2022110620221222_preprocessed.zip\" #@param {'type': 'string'}\n",
"dataset_dst = '/content/train_data.zip' #@param{'type':'string'}\n",
"#@markdown ### Define Auto-Unzip Parameter\n",
"extract_to = '/content/fine-tune/train_data' #@param{'type':'string'}\n",
"extract_to = '/content/fine_tune/train_data' #@param{'type':'string'}\n",
"unzip_module = \"use_7zip\" #@param [\"use_unzip\",\"use_7zip\",\"use_Zipfile\"]\n",
"\n",
"def download_and_unzip_dataset(url, zip_file, extract_to, unzip_module):\n",
Expand Down Expand Up @@ -343,7 +343,7 @@
"test = os.listdir(train_data_dir)\n",
"\n",
"#@markdown I recommend to `keep_metadata` especially if you're doing resume training and you have metadata and bucket latents file from previous training like `.npz`, `.txt`, and `.caption`.\n",
"keep_metadata = False #@param {'type':'boolean'}\n",
"keep_metadata = True #@param {'type':'boolean'}\n",
"\n",
"# List of supported file types\n",
"if keep_metadata == True:\n",
Expand Down

0 comments on commit 89adbbe

Please sign in to comment.