Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add unified image load util #35

Merged
merged 1 commit into from
Feb 11, 2025
Merged

add unified image load util #35

merged 1 commit into from
Feb 11, 2025

Conversation

Adenialzz
Copy link
Contributor

服务时一般是穿 base64 或 pil image 过来,而目前 vlm 加载图像时只能根据本地文件路径加载,这样只能存成一个本地临时文件,再读进来,比较低效。

参考 diffusers 的图片加载 util ,添加了统一的图像加载方法,可兼容从 image url/path/pil 加载。

@spetrel spetrel merged commit aa0cc61 into zhihu:main Feb 11, 2025
@Adenialzz Adenialzz deleted the vlm branch February 11, 2025 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants