jordyvl commited on
Commit
290b197
1 Parent(s): d79d96b

HARDCODED path to server since this datasets setup is absolute garbage - use at your own risk

Browse files
Files changed (1) hide show
  1. rvl_cdip_easyOCR.py +3 -0
rvl_cdip_easyOCR.py CHANGED
@@ -195,6 +195,9 @@ class RvlCdipEasyOcr(datasets.GeneratorBasedBuilder):
195
  with open(labels_filepath, encoding="utf-8") as f:
196
  data = f.read().splitlines()
197
 
 
 
 
198
  image_to_OCR = self._get_image_to_OCR(_OCR_DIR, split)
199
  image_to_class_id = self._get_image_to_class_map(data)
200
 
 
195
  with open(labels_filepath, encoding="utf-8") as f:
196
  data = f.read().splitlines()
197
 
198
+ # hardcoded to not get stuck in annoying IO and LFS problems in Hub
199
+ _OCR_DIR = "/cw/liir_data/NoCsBack/jordy/BDPC"
200
+
201
  image_to_OCR = self._get_image_to_OCR(_OCR_DIR, split)
202
  image_to_class_id = self._get_image_to_class_map(data)
203