We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c3e38d commit 34d5fa8Copy full SHA for 34d5fa8
lightllm/server/multimodal_params.py
@@ -34,6 +34,8 @@ def preload(self):
34
elif self._type == "base64":
35
img_data = base64.b64decode(self._data)
36
elif self._type == "image_size":
37
+ # image_size 代表直接传入图片的 width,height,主要是用于一些场景
38
+ # 的 token 计数判断, 所以只需要图片长宽信息,不需要具体图片的内容信息
39
self.image_w = self._data[0]
40
self.image_h = self._data[1]
41
return
0 commit comments