Skip to content

Commit 34d5fa8

Browse files
authored
fix
1 parent 8c3e38d commit 34d5fa8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightllm/server/multimodal_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def preload(self):
3434
elif self._type == "base64":
3535
img_data = base64.b64decode(self._data)
3636
elif self._type == "image_size":
37+
# image_size 代表直接传入图片的 width,height,主要是用于一些场景
38+
# 的 token 计数判断, 所以只需要图片长宽信息,不需要具体图片的内容信息
3739
self.image_w = self._data[0]
3840
self.image_h = self._data[1]
3941
return

0 commit comments

Comments
 (0)