File size: 905 Bytes
e9aab75
 
f82197a
 
 
 
 
 
 
 
 
9f50a3f
 
f82197a
 
 
e9aab75
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from datasets import load_dataset

data = load_dataset(
    "jordyvl/rvl-cdip_easyOCR",
    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
)


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
)