mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-28 19:16:33 +00:00
fix: fix clip tokenizer (#383)
This commit is contained in:
parent
e410aeb534
commit
14206fd488
1 changed files with 1 additions and 1 deletions
2
clip.hpp
2
clip.hpp
|
|
@ -388,7 +388,7 @@ public:
|
|||
std::string token_str = token.str();
|
||||
std::u32string utf32_token;
|
||||
for (int i = 0; i < token_str.length(); i++) {
|
||||
char b = token_str[i];
|
||||
unsigned char b = token_str[i];
|
||||
utf32_token += byte_encoder[b];
|
||||
}
|
||||
auto bpe_strs = bpe(utf32_token);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue