diff --git a/clip.hpp b/clip.hpp index 664da58..62b8658 100644 --- a/clip.hpp +++ b/clip.hpp @@ -76,7 +76,7 @@ public: 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 fbb73af..2241271 100644 --- a/examples/cli/main.cpp +++ b/examples/cli/main.cpp @@ -138,7 +138,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 7ab8889..07b59bb 100644 --- a/stable-diffusion.cpp +++ b/stable-diffusion.cpp @@ -265,7 +265,7 @@ public: 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));