From 1d4672d747a2af7a0bcde3a5f8c5f782a2ffa499 Mon Sep 17 00:00:00 2001 From: Kohya S Date: Mon, 17 Jul 2023 09:05:50 +0900 Subject: [PATCH] fix typos --- README.md | 2 +- networks/lora_diffusers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f725db35..a46d6a78 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This repository contains the scripts for: * DreamBooth training, including U-Net and Text Encoder * Fine-tuning (native training), including U-Net and Text Encoder * LoRA training -* Texutl Inversion training +* Texutal Inversion training * Image generation * Model conversion (supports 1.x and 2.x, Stable Diffision ckpt/safetensors and Diffusers) diff --git a/networks/lora_diffusers.py b/networks/lora_diffusers.py index c17b6e3a..f06212df 100644 --- a/networks/lora_diffusers.py +++ b/networks/lora_diffusers.py @@ -431,7 +431,7 @@ class LoRANetwork(torch.nn.Module): print(f"weights are restored") def load_state_dict(self, state_dict: Mapping[str, Any], strict: bool = True): - # conver SDXL Stability AI's state dict to Diffusers' based state dict + # convert SDXL Stability AI's state dict to Diffusers' based state dict map_keys = list(UNET_CONVERSION_MAP.keys()) # prefix of U-Net modules map_keys.sort() for key in list(state_dict.keys()):