You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We also support data loading the jsonl data of this format in [`src/open-r1-multimodal/src/open_r1/grpo_jsonl.py`](src/open-r1-multimodal/src/open_r1/grpo_jsonl.py).
89
91
92
+
The jsonl has the format as follows:
93
+
```json
94
+
{"id": 1, "image": "Clevr_CoGenT_TrainA_R1/data/images/CLEVR_trainA_000001_16885.png", "conversations": [{"from": "human", "value": "<image>What number of purple metallic balls are there?"}, {"from": "gpt", "value": "0"}]}
95
+
```
96
+
97
+
Note: The image path in the jsonl file should be relative to the image folder specified in `--image_folders`. The absolute path of the input image is constructed as `os.path.join(image_folder, data['image'])`. For example:
98
+
- If your jsonl has `"image": "folder1/image1.jpg"`
99
+
- And you specify `--image_folders "/path/to/images/"`
100
+
- The full image path will be `/path/to/images/folder1/image1.jpg`
101
+
102
+
Multiple data files and image folders can be specified using ":" as a separator:
0 commit comments