rvl_cdip_easyocr / test_loader.py
jordyvl's picture
try again
f918a75
raw
history blame
1.49 kB
from datasets import load_dataset_builder, get_dataset_config_names, get_dataset_infos, load_dataset
# print(get_dataset_infos('jordyvl/rvl-cdip_easyOCR'))
# print(get_dataset_config_names("jordyvl/rvl-cdip_easyOCR"))
data = load_dataset(
"jordyvl/rvl-cdip_easyOCR",
name='jordyvl--rvl-cdip_easyOCR',
save_infos=True,
)
builder = load_dataset_builder("jordyvl/rvl-cdip_easyOCR")
print(builder._info())
from pdb import set_trace; set_trace()
print(builder.get_all_exported_dataset_infos())
ds = builder.download_and_prepare()
from pdb import set_trace; set_trace()
# data = load_dataset(
# "jordyvl/rvl-cdip_easyOCR",
# split="test",
# version="1.0.0"
# #cache_dir="/mnt/lerna/data/HFcache",
# # data_files={ # this is the path to the images if it does not download it
# # "binary": __file__#"/mnt/lerna/data/HFcache/downloads/c8cc6f89129255a9adf3e97e319ebe2055cf97662135b3ad26c79e9432544db5",
# # },
# #data_dir="/home/jordy/Downloads/OCRedText", # this is the path to the OCR data
# )
from pdb import set_trace; set_trace()
data = load_dataset(
"./rvl_cdip_easyOCR.py",
split="test",
#cache_dir="/mnt/lerna/data/HFcache",
data_files={ # this is the path to the images if it does not download it
"binary": __file__#"/mnt/lerna/data/HFcache/downloads/c8cc6f89129255a9adf3e97e319ebe2055cf97662135b3ad26c79e9432544db5",
},
data_dir="/home/jordy/Downloads/OCRedText", # this is the path to the OCR data
)