Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0362cc4

Browse files
fix: fix some typos (leejet#361)
1 parent 6c88ad3 commit 0362cc4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clip.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class CLIPTokenizer {
7676
const std::string UNK_TOKEN = "<|endoftext|>";
7777
const std::string BOS_TOKEN = "<|startoftext|>";
7878
const std::string EOS_TOKEN = "<|endoftext|>";
79-
const std::string PAD_TOEKN = "<|endoftext|>";
79+
const std::string PAD_TOKEN = "<|endoftext|>";
8080

8181
const int UNK_TOKEN_ID = 49407;
8282
const int BOS_TOKEN_ID = 49406;
@@ -922,4 +922,4 @@ struct CLIPTextModelRunner : public GGMLRunner {
922922
}
923923
};
924924

925-
#endif // __CLIP_HPP__
925+
#endif // __CLIP_HPP__

examples/cli/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ void print_params(SDParams params) {
138138
printf(" stacked_id_embeddings_path: %s\n", params.stacked_id_embeddings_path.c_str());
139139
printf(" input_id_images_path: %s\n", params.input_id_images_path.c_str());
140140
printf(" style ratio: %.2f\n", params.style_ratio);
141-
printf(" normzalize input image : %s\n", params.normalize_input ? "true" : "false");
141+
printf(" normalize input image : %s\n", params.normalize_input ? "true" : "false");
142142
printf(" output_path: %s\n", params.output_path.c_str());
143143
printf(" init_img: %s\n", params.input_path.c_str());
144144
printf(" control_image: %s\n", params.control_image_path.c_str());

stable-diffusion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ class StableDiffusionGGML {
265265

266266
LOG_INFO("Weight type: %s", ggml_type_name(model_wtype));
267267
LOG_INFO("Conditioner weight type: %s", ggml_type_name(conditioner_wtype));
268-
LOG_INFO("Diffsuion model weight type: %s", ggml_type_name(diffusion_model_wtype));
268+
LOG_INFO("Diffusion model weight type: %s", ggml_type_name(diffusion_model_wtype));
269269
LOG_INFO("VAE weight type: %s", ggml_type_name(vae_wtype));
270270

271271
LOG_DEBUG("ggml tensor size = %d bytes", (int)sizeof(ggml_tensor));

0 commit comments

Comments
 (0)