mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-10 15:00:23 +00:00
fix assertion for experimental impl ref #1389
This commit is contained in:
14
sd3_train.py
14
sd3_train.py
@@ -60,9 +60,19 @@ def train(args):
|
||||
assert (
|
||||
not args.weighted_captions
|
||||
), "weighted_captions is not supported currently / weighted_captionsは現在サポートされていません"
|
||||
# assert (
|
||||
# not args.train_text_encoder or not args.cache_text_encoder_outputs
|
||||
# ), "cache_text_encoder_outputs is not supported when training text encoder / text encoderを学習するときはcache_text_encoder_outputsはサポートされていません"
|
||||
|
||||
# training text encoder is not supported
|
||||
assert (
|
||||
not args.train_text_encoder or not args.cache_text_encoder_outputs
|
||||
), "cache_text_encoder_outputs is not supported when training text encoder / text encoderを学習するときはcache_text_encoder_outputsはサポートされていません"
|
||||
not args.train_text_encoder
|
||||
), "training text encoder is not supported currently / text encoderの学習は現在サポートされていません"
|
||||
|
||||
# training without text encoder cache is not supported
|
||||
assert (
|
||||
args.cache_text_encoder_outputs
|
||||
), "training without text encoder cache is not supported currently / text encoderのキャッシュなしの学習は現在サポートされていません"
|
||||
|
||||
# if args.block_lr:
|
||||
# block_lrs = [float(lr) for lr in args.block_lr.split(",")]
|
||||
|
||||
Reference in New Issue
Block a user