Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
100K<n<1M
ArXiv:
License:
dunno how to fic
Browse files- rvl_cdip_easyOCR.py +1 -0
- test_loader.py +3 -4
rvl_cdip_easyOCR.py
CHANGED
@@ -174,6 +174,7 @@ class RvlCdipEasyOCR(datasets.GeneratorBasedBuilder):
|
|
174 |
return words, boxes
|
175 |
|
176 |
def _generate_examples(self, archive_iterator, labels_filepath, split):
|
|
|
177 |
with open(labels_filepath, encoding="utf-8") as f:
|
178 |
data = f.read().splitlines()
|
179 |
|
|
|
174 |
return words, boxes
|
175 |
|
176 |
def _generate_examples(self, archive_iterator, labels_filepath, split):
|
177 |
+
from pdb import set_trace; set_trace()
|
178 |
with open(labels_filepath, encoding="utf-8") as f:
|
179 |
data = f.read().splitlines()
|
180 |
|
test_loader.py
CHANGED
@@ -4,13 +4,12 @@ data = load_dataset(
|
|
4 |
"jordyvl/rvl-cdip_easyOCR",
|
5 |
split="test",
|
6 |
#cache_dir="/mnt/lerna/data/HFcache",
|
7 |
-
data_files={ # this is the path to the images if it does not download it
|
8 |
-
|
9 |
-
},
|
10 |
#data_dir="/home/jordy/Downloads/OCRedText", # this is the path to the OCR data
|
11 |
)
|
12 |
|
13 |
-
|
14 |
from pdb import set_trace; set_trace()
|
15 |
|
16 |
|
|
|
4 |
"jordyvl/rvl-cdip_easyOCR",
|
5 |
split="test",
|
6 |
#cache_dir="/mnt/lerna/data/HFcache",
|
7 |
+
# data_files={ # this is the path to the images if it does not download it
|
8 |
+
# "binary": __file__#"/mnt/lerna/data/HFcache/downloads/c8cc6f89129255a9adf3e97e319ebe2055cf97662135b3ad26c79e9432544db5",
|
9 |
+
# },
|
10 |
#data_dir="/home/jordy/Downloads/OCRedText", # this is the path to the OCR data
|
11 |
)
|
12 |
|
|
|
13 |
from pdb import set_trace; set_trace()
|
14 |
|
15 |
|