mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-09 06:45:09 +00:00
enable cache_latents when _to_disk #438
This commit is contained in:
@@ -2185,6 +2185,12 @@ def verify_training_args(args: argparse.Namespace):
|
|||||||
if args.v2 and args.clip_skip is not None:
|
if args.v2 and args.clip_skip is not None:
|
||||||
print("v2 with clip_skip will be unexpected / v2でclip_skipを使用することは想定されていません")
|
print("v2 with clip_skip will be unexpected / v2でclip_skipを使用することは想定されていません")
|
||||||
|
|
||||||
|
if args.cache_latents_to_disk and not args.cache_latents:
|
||||||
|
args.cache_latents = True
|
||||||
|
print(
|
||||||
|
"cache_latents_to_disk is enabled, so cache_latents is also enabled / cache_latents_to_diskが有効なため、cache_latentsを有効にします"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def add_dataset_arguments(
|
def add_dataset_arguments(
|
||||||
parser: argparse.ArgumentParser, support_dreambooth: bool, support_caption: bool, support_caption_dropout: bool
|
parser: argparse.ArgumentParser, support_dreambooth: bool, support_caption: bool, support_caption_dropout: bool
|
||||||
|
|||||||
Reference in New Issue
Block a user