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
@@ -31,9 +31,15 @@ For training and inference code, please refer to [InternVL](https://github.com/O
|
|
31 |
|
32 |
```
|
33 |
from datasets import load_dataset
|
|
|
|
|
34 |
|
35 |
mm_mathinstruct = load_dataset("MathLLMs/MM-MathInstruct")
|
36 |
print(mm_mathinstruct)
|
|
|
|
|
|
|
|
|
37 |
```
|
38 |
|
39 |
It should print:
|
|
|
31 |
|
32 |
```
|
33 |
from datasets import load_dataset
|
34 |
+
from PIL import Image
|
35 |
+
from io import BytesIO
|
36 |
|
37 |
mm_mathinstruct = load_dataset("MathLLMs/MM-MathInstruct")
|
38 |
print(mm_mathinstruct)
|
39 |
+
|
40 |
+
# show the last image
|
41 |
+
img = Image.open(BytesIO(mm_mathinstruct['train'][-1]['image']))
|
42 |
+
img.show()
|
43 |
```
|
44 |
|
45 |
It should print:
|