Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
100K<n<1M
ArXiv:
License:
get rid of config - reload from README
Browse files- rvl_cdip_easyOCR.py +11 -11
- test_loader.py +3 -1
rvl_cdip_easyOCR.py
CHANGED
@@ -75,17 +75,17 @@ _IMAGES_DIR = "images/"
|
|
75 |
_OCR_DIR = "data/" # np files live under here with OCR results
|
76 |
|
77 |
|
78 |
-
class OCRConfig(datasets.BuilderConfig):
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
|
90 |
|
91 |
class RvlCdipEasyOcr(datasets.GeneratorBasedBuilder):
|
|
|
75 |
_OCR_DIR = "data/" # np files live under here with OCR results
|
76 |
|
77 |
|
78 |
+
# class OCRConfig(datasets.BuilderConfig):
|
79 |
+
# """BuilderConfig for RedCaps."""
|
80 |
+
|
81 |
+
# def __init__(self, name, OCR_dir, **kwargs):
|
82 |
+
# """BuilderConfig for RedCaps.
|
83 |
+
# Args:
|
84 |
+
# **kwargs: keyword arguments forwarded to super.
|
85 |
+
# """
|
86 |
+
# assert "description" not in kwargs
|
87 |
+
# super(OCRConfig, self).__init__(version=kwargs["version"], name=name, **kwargs)
|
88 |
+
# self.OCR_dir = OCR_dir
|
89 |
|
90 |
|
91 |
class RvlCdipEasyOcr(datasets.GeneratorBasedBuilder):
|
test_loader.py
CHANGED
@@ -8,8 +8,10 @@ from datasets import (
|
|
8 |
|
9 |
data = load_dataset(
|
10 |
"jordyvl/rvl-cdip_easyOCR",
|
11 |
-
data_dir="/cw/liir_data/NoCsBack/jordy/BDPC", # this is the path to the OCR data
|
12 |
)
|
|
|
|
|
|
|
13 |
|
14 |
|
15 |
# print(get_dataset_infos('jordyvl/rvl-cdip_easyOCR'))
|
|
|
8 |
|
9 |
data = load_dataset(
|
10 |
"jordyvl/rvl-cdip_easyOCR",
|
|
|
11 |
)
|
12 |
+
from pdb import set_trace
|
13 |
+
|
14 |
+
set_trace()
|
15 |
|
16 |
|
17 |
# print(get_dataset_infos('jordyvl/rvl-cdip_easyOCR'))
|