You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config_README-en.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -177,6 +177,7 @@ Options related to the configuration of DreamBooth subsets.
177
177
|`image_dir`|`'C:\hoge'`| - | - | o (required) |
178
178
|`caption_extension`|`".txt"`| o | o | o |
179
179
|`class_tokens`|`"sks girl"`| - | - | o |
180
+
|`cache_info`|`false`| o | o | o |
180
181
|`is_reg`|`false`| - | - | o |
181
182
182
183
Firstly, note that for `image_dir`, the path to the image files must be specified as being directly in the directory. Unlike the previous DreamBooth method, where images had to be placed in subdirectories, this is not compatible with that specification. Also, even if you name the folder something like "5_cat", the number of repeats of the image and the class name will not be reflected. If you want to set these individually, you will need to explicitly specify them using `num_repeats` and `class_tokens`.
@@ -187,6 +188,9 @@ Firstly, note that for `image_dir`, the path to the image files must be specifie
187
188
*`class_tokens`
188
189
* Sets the class tokens.
189
190
* Only used during training when a corresponding caption file does not exist. The determination of whether or not to use it is made on a per-image basis. If `class_tokens` is not specified and a caption file is not found, an error will occur.
191
+
*`cache_info`
192
+
* Specifies whether to cache the image size and caption. If not specified, it is set to `false`. The cache is saved in `metadata_cache.json` in `image_dir`.
193
+
* Caching speeds up the loading of the dataset after the first time. It is effective when dealing with thousands of images or more.
190
194
*`is_reg`
191
195
* Specifies whether the subset images are for normalization. If not specified, it is set to `false`, meaning that the images are not for normalization.
0 commit comments