Image-Text-to-Text
Transformers
Safetensors
English
internvl_chat
feature-extraction
mathematics
reasoning
multi-modal-qa
math-qa
figure-qa
geometry-qa
math-word-problem
textbook-qa
vqa
geometry-diagram
synthetic-scene
chart
plot
scientific-figure
table
function-plot
abstract-scene
puzzle-test
document-image
science
conversational
custom_code
Add files using upload-large-folder tool
Browse files
README.md
CHANGED
|
@@ -32,9 +32,15 @@ For training and inference code, please refer to [InternVL](https://github.com/O
|
|
| 32 |
|
| 33 |
```
|
| 34 |
from datasets import load_dataset
|
|
|
|
|
|
|
| 35 |
|
| 36 |
mm_mathinstruct = load_dataset("MathLLMs/MM-MathInstruct")
|
| 37 |
print(mm_mathinstruct)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
```
|
| 39 |
|
| 40 |
It should print:
|
|
|
|
| 32 |
|
| 33 |
```
|
| 34 |
from datasets import load_dataset
|
| 35 |
+
from PIL import Image
|
| 36 |
+
from io import BytesIO
|
| 37 |
|
| 38 |
mm_mathinstruct = load_dataset("MathLLMs/MM-MathInstruct")
|
| 39 |
print(mm_mathinstruct)
|
| 40 |
+
|
| 41 |
+
# show the last image
|
| 42 |
+
img = Image.open(BytesIO(mm_mathinstruct['train'][-1]['image']))
|
| 43 |
+
img.show()
|
| 44 |
```
|
| 45 |
|
| 46 |
It should print:
|