diff --git a/clip.hpp b/clip.hpp index 664da58c6..62b86584f 100644 --- a/clip.hpp +++ b/clip.hpp @@ -76,7 +76,7 @@ class CLIPTokenizer { const std::string UNK_TOKEN = "<|endoftext|>"; const std::string BOS_TOKEN = "<|startoftext|>"; const std::string EOS_TOKEN = "<|endoftext|>"; - const std::string PAD_TOEKN = "<|endoftext|>"; + const std::string PAD_TOKEN = "<|endoftext|>"; const int UNK_TOKEN_ID = 49407; const int BOS_TOKEN_ID = 49406; @@ -922,4 +922,4 @@ struct CLIPTextModelRunner : public GGMLRunner { } }; -#endif // __CLIP_HPP__ \ No newline at end of file +#endif // __CLIP_HPP__ diff --git a/examples/cli/main.cpp b/examples/cli/main.cpp index 1756a976b..8d86eba12 100644 --- a/examples/cli/main.cpp +++ b/examples/cli/main.cpp @@ -134,7 +134,7 @@ void print_params(SDParams params) { printf(" stacked_id_embeddings_path: %s\n", params.stacked_id_embeddings_path.c_str()); printf(" input_id_images_path: %s\n", params.input_id_images_path.c_str()); printf(" style ratio: %.2f\n", params.style_ratio); - printf(" normzalize input image : %s\n", params.normalize_input ? "true" : "false"); + printf(" normalize input image : %s\n", params.normalize_input ? "true" : "false"); printf(" output_path: %s\n", params.output_path.c_str()); printf(" init_img: %s\n", params.input_path.c_str()); printf(" control_image: %s\n", params.control_image_path.c_str()); diff --git a/stable-diffusion.cpp b/stable-diffusion.cpp index 1bbe0d949..6ebe4e278 100644 --- a/stable-diffusion.cpp +++ b/stable-diffusion.cpp @@ -254,7 +254,7 @@ class StableDiffusionGGML { LOG_INFO("Weight type: %s", ggml_type_name(model_wtype)); LOG_INFO("Conditioner weight type: %s", ggml_type_name(conditioner_wtype)); - LOG_INFO("Diffsuion model weight type: %s", ggml_type_name(diffusion_model_wtype)); + LOG_INFO("Diffusion model weight type: %s", ggml_type_name(diffusion_model_wtype)); LOG_INFO("VAE weight type: %s", ggml_type_name(vae_wtype)); LOG_DEBUG("ggml tensor size = %d bytes", (int)sizeof(ggml_tensor));