Skip to content

Commit

Permalink
Fix build on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
li-plus committed Jul 25, 2024
1 parent cc0f3a8 commit 1ad261c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chatglm_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,8 @@ TEST(Pipeline, ChatGLM4V) {

// tokenizer
{
Image image = Image::open(fs::path(__FILE__).parent_path() / "examples/03-Confusing-Pictures.jpg");
fs::path image_path = fs::path(__FILE__).parent_path() / "examples/03-Confusing-Pictures.jpg";
Image image = Image::open(image_path.string());
std::vector<ChatMessage> messages{{ChatMessage::ROLE_USER, "描述这张图片", image}};
std::vector<int> target_ids{151331, 151333, 151336, 198, 151339, 151329,
151340, 100395, 108627, 100736, 151337};
Expand Down

0 comments on commit 1ad261c

Please sign in to comment.