Commit Graph

476 Commits

Author SHA1 Message Date
JamePeng
344ddc2cb1 Optimize video frame sampling logic
- Replaced manual index calculation with `np.linspace` for improved efficiency and readability.
- Reduced computation overhead by utilizing NumPy's vectorized operations for generating evenly spaced frame indices.
2024-08-27 04:40:48 +08:00
JamePeng
3745c3316a Update web_demo_streamlit-minicpmv2_6.py 2024-08-27 04:20:48 +08:00
JamePeng
dc5f809253 Update web_demo_streamlit-minicpmv2_6.py
1. Avoid using 'None' string when `user_text` is empty.
2. Added `st.spinner` to display a loading message during AI content generation.
2024-08-27 04:03:35 +08:00
JamePeng
48ed792ab8 Merge branch 'OpenBMB:main' into main 2024-08-27 03:39:30 +08:00
yiranyyu
ab1141ee45 update readme 2024-08-25 18:08:59 +08:00
yiranyyu
421c6d7838 update readme 2024-08-25 18:06:15 +08:00
yiranyyu
512d5a8bb0 update readme 2024-08-25 17:11:43 +08:00
LDLINGLINGLING
1c31c6aa78 Update wechat.md 2024-08-22 13:44:10 +08:00
LDLINGLINGLING
93aad9f29f Add files via upload 2024-08-22 13:43:45 +08:00
yiranyyu
c19087cd13 update readme 2024-08-21 11:02:58 +08:00
yiranyyu
0fadd70c9e Merge branch 'main' of https://github.com/OpenBMB/MiniCPM-V 2024-08-19 22:35:57 +08:00
yiranyyu
4b13c46dbb update readme 2024-08-19 22:35:54 +08:00
JamePeng
c9f5cd4b00 Update streamlit implementation for MiniCPM-V 2.6
Compared with the streamlit implementation of 2.5, this code implementation can better play the new multi-modal capabilities of 2.6:
1. The application supports the upload and processing of text, single image, multiple images and videos, and can process different types of input according to the mode selected by the user.

2. Video frame extraction and encoding: In video mode, frames are extracted from the uploaded video through the decord library and uniformly sampled so that the model can process and generate responses. More detailed and clear variables and annotations. Convenient for learning and use

3. File upload and processing: Support users to upload pictures and videos, and perform corresponding processing according to different modes, such as displaying pictures in single picture mode, displaying multiple pictures in multi-picture mode, and processing video frames in video mode. You can switch back and forth between different media.

4. Tip: You can use the command `streamlit run ./web_demo_streamlit-minicpmv2_6.py --server.maxUploadSize 1024` 
to adjust the maximum upload size to 1024MB or larger files. The default 200MB limit of Streamlit's file_uploader component might be insufficient for video-based interactions. Adjust the size based on your GPU memory usage.
2024-08-19 00:45:33 +08:00
JamePeng
259d54ed0a Update web_demo_streamlit-2_5.py
Fixed a bug where imagefile was not initialized when no image was passed in
2024-08-18 23:53:07 +08:00
LDLINGLINGLING
0e4ec319cf Update wechat.md 2024-08-16 16:16:35 +08:00
LDLINGLINGLING
b01d8e4adb 增加了微信群26的入口图片 2024-08-16 16:16:03 +08:00
LDLINGLINGLING
970cea7d60 增加了25群的入口图片 2024-08-16 16:14:35 +08:00
yiranyyu
338892394f update readme 2024-08-15 12:08:47 +08:00
yiranyyu
5553046db7 update readme 2024-08-15 12:06:40 +08:00
yiranyyu
30b2446b0f update readme 2024-08-15 12:05:31 +08:00
qianyu chen
cd64150b51 update finetuen for multi images sft (#462) 2024-08-15 11:24:50 +08:00
tc-mb
825abf10e2 Update README_zh.md 2024-08-15 11:04:58 +08:00
tc-mb
ee458ad848 Update README.md 2024-08-15 10:59:28 +08:00
yiranyyu
352df454a4 update readme 2024-08-14 16:17:51 +08:00
yiranyyu
c198fbf0f1 update readme 2024-08-14 16:17:03 +08:00
yiranyyu
002773de9a update readme 2024-08-14 16:16:11 +08:00
yiranyyu
b4a19cb2f1 update readme 2024-08-14 16:15:32 +08:00
LDLINGLINGLING
61e942ec7c Update wechat.md 2024-08-13 09:32:13 +08:00
LDLINGLINGLING
d54b3d9bec add WeChat png 2024-08-13 09:29:23 +08:00
Hongji Zhu
6c47edde7f Update requirements.txt 2024-08-12 13:24:14 +08:00
YuzaChongyi
791c977ab2 fix 2.6 slice placeholder 2024-08-11 13:20:29 +08:00
YuzaChongyi
251a4c20be Update readme.md 2024-08-11 12:11:01 +08:00
yiranyyu
be19c2a6f1 update readme 2024-08-10 14:33:17 +08:00
Hongji Zhu
0694b1e897 update req gradio version to 4.41.0 2024-08-09 15:13:58 +08:00
LDLINGLINGLING
3ef53989f7 Update wechat.md 2024-08-09 13:40:23 +08:00
LDLINGLINGLING
74c2cfc9bd 增加微信群入口图片 2024-08-09 11:35:40 +08:00
yiranyyu
b0125d8a81 update readme 2024-08-09 10:25:34 +08:00
yiranyyu
f8e67f231f update readme 2024-08-09 10:23:57 +08:00
yiranyyu
7e95d5623a update readme 2024-08-09 10:20:21 +08:00
yiranyyu
6b2938a8f4 Merge branch 'main' of https://github.com/OpenBMB/MiniCPM-V 2024-08-09 10:19:33 +08:00
yiranyyu
24a472dfac update readme 2024-08-09 10:19:28 +08:00
Hongji Zhu
c27e0856b6 Update README.md 2024-08-08 11:20:14 +08:00
Hongji Zhu
9129ad7cce Update README_zh.md 2024-08-08 11:17:49 +08:00
Hongji Zhu
0514b661e0 Merge pull request #410 from HwwwwwwwH/patch-1
Update README_en.md and Readme_zh.md
2024-08-08 10:53:52 +08:00
Alphi
975b4606b1 Update README_zh.md 2024-08-07 18:53:42 +08:00
Alphi
b2943a6f57 Update README_en.md 2024-08-07 18:38:45 +08:00
Hongji Zhu
4993093969 Merge pull request #405 from HwwwwwwwH/patch-3
Update README.md for vllm
2024-08-07 18:15:00 +08:00
Alphi
754a1a818d Update README.md 2024-08-07 16:48:11 +08:00
Alphi
d1465b96b4 Update README.md 2024-08-07 16:36:02 +08:00
tc-mb
77673f5453 Create vllm.yaml 2024-08-07 15:21:39 +08:00