File size: 1,597 Bytes
7ada262
 
 
 
 
 
 
 
 
 
 
d79d96b
 
 
7ada262
f83327c
f918a75
 
c9cefb1
 
f83327c
5799cb7
68e468a
7ada262
 
 
68e468a
a3618e4
bcb4ad3
f83327c
7ada262
 
 
f83327c
 
 
 
 
 
 
 
 
 
9f50a3f
7ada262
 
 
f82197a
 
e9aab75
 
 
7ada262
 
 
e9aab75
7ada262
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from datasets import (
    load_dataset_builder,
    get_dataset_config_names,
    get_dataset_infos,
    load_dataset,
)


data = load_dataset(
    "jordyvl/rvl-cdip_easyOCR",
)
from pdb import set_trace

set_trace()


# print(get_dataset_infos('jordyvl/rvl-cdip_easyOCR'))
# print(get_dataset_config_names("jordyvl/rvl-cdip_easyOCR"))
# data = load_dataset(
#     "jordyvl/rvl-cdip_easyOCR")

builder = load_dataset_builder("rvl_cdip")

from pdb import set_trace

set_trace()
builder = load_dataset_builder("jordyvl/rvl-cdip_easyOCR")
print(builder._info())
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
)