This dataset was converted from
https://github.com/lupantech/InterGPS using the following script.
import json
import os
from datasets import Dataset, DatasetDict, Sequence
from datasets import Image as ImageData
from PIL import Image
def generate_data(data_path: str):
for folder in os.listdir(data_path):
folder_path = os.path.join(data_path, folder)
image = Image.open(os.path.join(folder_path, "img_diagram.png"), "r")… See the full description on the dataset page:
https://huggingface.co/datasets/hiyouga/geometry3k.