fix typos

This commit is contained in:
Kohya S
2023-06-26 20:43:34 +09:00
parent 2c461e4ad3
commit 9ebebb22db
2 changed files with 2 additions and 2 deletions

View File

@@ -375,7 +375,7 @@ def verify_sdxl_training_args(args: argparse.Namespace):
args.noise_offset = DEFAULT_NOISE_OFFSET
elif args.noise_offset != DEFAULT_NOISE_OFFSET:
print(
f"Waring: SDXL has been trained with noise_offset={DEFAULT_NOISE_OFFSET} / SDXLはnoise_offset={DEFAULT_NOISE_OFFSET}で学習されています"
f"Warning: SDXL has been trained with noise_offset={DEFAULT_NOISE_OFFSET} / SDXLはnoise_offset={DEFAULT_NOISE_OFFSET}で学習されています"
)
print(f"noise_offset is set to {args.noise_offset} / noise_offsetが{args.noise_offset}に設定されました")

View File

@@ -98,7 +98,7 @@ class NetworkTrainer:
return False
def cache_text_encoder_outputs_if_needed(
self, args, accelerator, uner, vae, tokenizers, text_encoders, data_loader, weight_dtype
self, args, accelerator, unet, vae, tokenizers, text_encoders, data_loader, weight_dtype
):
for t_enc in text_encoders:
t_enc.to(accelerator.device)