mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-08 22:35:09 +00:00
Fix to show template type
This commit is contained in:
@@ -311,7 +311,7 @@ class TextualInversionTrainer:
|
|||||||
|
|
||||||
# make captions: tokenstring tokenstring1 tokenstring2 ...tokenstringn という文字列に書き換える超乱暴な実装
|
# make captions: tokenstring tokenstring1 tokenstring2 ...tokenstringn という文字列に書き換える超乱暴な実装
|
||||||
if use_template:
|
if use_template:
|
||||||
accelerator.print("use template for training captions. is object: {args.use_object_template}")
|
accelerator.print(f"use template for training captions. is object: {args.use_object_template}")
|
||||||
templates = imagenet_templates_small if args.use_object_template else imagenet_style_templates_small
|
templates = imagenet_templates_small if args.use_object_template else imagenet_style_templates_small
|
||||||
replace_to = " ".join(token_strings)
|
replace_to = " ".join(token_strings)
|
||||||
captions = []
|
captions = []
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ def train(args):
|
|||||||
|
|
||||||
# make captions: tokenstring tokenstring1 tokenstring2 ...tokenstringn という文字列に書き換える超乱暴な実装
|
# make captions: tokenstring tokenstring1 tokenstring2 ...tokenstringn という文字列に書き換える超乱暴な実装
|
||||||
if use_template:
|
if use_template:
|
||||||
print("use template for training captions. is object: {args.use_object_template}")
|
print(f"use template for training captions. is object: {args.use_object_template}")
|
||||||
templates = imagenet_templates_small if args.use_object_template else imagenet_style_templates_small
|
templates = imagenet_templates_small if args.use_object_template else imagenet_style_templates_small
|
||||||
replace_to = " ".join(token_strings)
|
replace_to = " ".join(token_strings)
|
||||||
captions = []
|
captions = []
|
||||||
|
|||||||
Reference in New Issue
Block a user