jordyvl commited on
Commit
f83327c
·
1 Parent(s): 49d665a

dunno how to fic

Browse files
Files changed (1) hide show
  1. test_loader.py +17 -11
test_loader.py CHANGED
@@ -1,16 +1,22 @@
1
  from datasets import load_dataset
 
2
 
3
- data = load_dataset(
4
- "jordyvl/rvl-cdip_easyOCR",
5
- split="test",
6
- version="1.0.0"
7
-
8
- #cache_dir="/mnt/lerna/data/HFcache",
9
- # data_files={ # this is the path to the images if it does not download it
10
- # "binary": __file__#"/mnt/lerna/data/HFcache/downloads/c8cc6f89129255a9adf3e97e319ebe2055cf97662135b3ad26c79e9432544db5",
11
- # },
12
- #data_dir="/home/jordy/Downloads/OCRedText", # this is the path to the OCR data
13
- )
 
 
 
 
 
14
 
15
  from pdb import set_trace; set_trace()
16
 
 
1
  from datasets import load_dataset
2
+ from datasets import load_dataset_builder
3
 
4
+
5
+
6
+ builder = load_dataset_builder("jordyvl/rvl-cdip_easyOCR")
7
+ ds = builder.download_and_prepare()
8
+ print(ds.get_all_exported_dataset_infos())
9
+ from pdb import set_trace; set_trace()
10
+ # data = load_dataset(
11
+ # "jordyvl/rvl-cdip_easyOCR",
12
+ # split="test",
13
+ # version="1.0.0"
14
+ # #cache_dir="/mnt/lerna/data/HFcache",
15
+ # # data_files={ # this is the path to the images if it does not download it
16
+ # # "binary": __file__#"/mnt/lerna/data/HFcache/downloads/c8cc6f89129255a9adf3e97e319ebe2055cf97662135b3ad26c79e9432544db5",
17
+ # # },
18
+ # #data_dir="/home/jordy/Downloads/OCRedText", # this is the path to the OCR data
19
+ # )
20
 
21
  from pdb import set_trace; set_trace()
22