mirror of
https://github.com/OpenBMB/MiniCPM-V.git
synced 2026-02-04 17:59:18 +08:00
@@ -500,6 +500,9 @@ Please refer to the following codes to run `MiniCPM-V` and `OmniLMM`.
|
||||
|
||||
```python
|
||||
from chat import OmniLMMChat, img2base64
|
||||
import torch
|
||||
import json
|
||||
|
||||
torch.manual_seed(0)
|
||||
|
||||
chat_model = OmniLMMChat('openbmb/MiniCPM-Llama3-V-2_5')
|
||||
|
||||
@@ -471,6 +471,9 @@ Please refer to the following codes to run `MiniCPM-V` and `OmniLMM`.
|
||||
|
||||
```python
|
||||
from chat import OmniLMMChat, img2base64
|
||||
import torch
|
||||
import json
|
||||
|
||||
torch.manual_seed(0)
|
||||
|
||||
chat_model = OmniLMMChat('openbmb/MiniCPM-Llama3-V-2_5')
|
||||
|
||||
@@ -507,6 +507,9 @@ pip install -r requirements.txt
|
||||
|
||||
```python
|
||||
from chat import OmniLMMChat, img2base64
|
||||
import torch
|
||||
import json
|
||||
|
||||
torch.manual_seed(0)
|
||||
|
||||
chat_model = OmniLMMChat('openbmb/MiniCPM-Llama3-V-2_5')
|
||||
|
||||
Reference in New Issue
Block a user