jordyvl commited on
Commit
f918a75
1 Parent(s): 64c8ff1
Files changed (2) hide show
  1. dataset_infos.json +90 -0
  2. test_loader.py +4 -4
dataset_infos.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "default": {
3
+ "description": "The RVL-CDIP (Ryerson Vision Lab Complex Document Information Processing) dataset consists of 400,000 grayscale images in 16 classes, with 25,000 images per class. There are 320,000 training images, 40,000 validation images, and 40,000 test images.\n",
4
+ "citation": "@inproceedings{harley2015icdar,\n title = {Evaluation of Deep Convolutional Nets for Document Image Classification and Retrieval},\n author = {Adam W Harley and Alex Ufkes and Konstantinos G Derpanis},\n booktitle = {International Conference on Document Analysis and Recognition ({ICDAR})}},\n year = {2015}\n}\n",
5
+ "homepage": "https://www.cs.cmu.edu/~aharley/rvl-cdip/",
6
+ "license": "https://www.industrydocuments.ucsf.edu/help/copyright/",
7
+ "features": {
8
+ "image": {
9
+ "decode": true,
10
+ "id": null,
11
+ "_type": "Image"
12
+ },
13
+ "label": {
14
+ "num_classes": 16,
15
+ "names": [
16
+ "letter",
17
+ "form",
18
+ "email",
19
+ "handwritten",
20
+ "advertisement",
21
+ "scientific report",
22
+ "scientific publication",
23
+ "specification",
24
+ "file folder",
25
+ "news article",
26
+ "budget",
27
+ "invoice",
28
+ "presentation",
29
+ "questionnaire",
30
+ "resume",
31
+ "memo"
32
+ ],
33
+ "id": null,
34
+ "_type": "ClassLabel"
35
+ },
36
+ "id":{
37
+ "_type": "Value",
38
+ "dtype": "string",
39
+ },
40
+ "words":{
41
+ "_type": "Sequence",
42
+ "dtype": "string",
43
+ },
44
+ "boxes":{"_type":"Sequence",
45
+ "feature": {"dtype": "int32", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}},
46
+ },
47
+
48
+ "post_processed": null,
49
+ "supervised_keys": {
50
+ "input": "image",
51
+ "output": "label"
52
+ },
53
+ "task_templates": [
54
+ {
55
+ "task": "image-classification",
56
+ "image_column": "image",
57
+ "label_column": "label"
58
+ }
59
+ ],
60
+ "builder_name": "rvl_cdip_easyOCR",
61
+ "config_name": "default",
62
+ "version": {
63
+ "version_str": "1.0.0",
64
+ "description": null,
65
+ "major": 1,
66
+ "minor": 0,
67
+ "patch": 0
68
+ },
69
+ "splits": {
70
+ "train": {
71
+ "name": "train",
72
+ "num_bytes": 38816373360,
73
+ "num_examples": 320000,
74
+ "dataset_name": "rvl_cdip_easyOCR"
75
+ },
76
+ "test": {
77
+ "name": "test",
78
+ "num_bytes": 4863300853,
79
+ "num_examples": 40000,
80
+ "dataset_name": "rvl_cdip_easyOCR"
81
+ },
82
+ "validation": {
83
+ "name": "validation",
84
+ "num_bytes": 4868685208,
85
+ "num_examples": 40000,
86
+ "dataset_name": "rvl_cdip_easyOCR"
87
+ }
88
+ }
89
+ }
90
+ }
test_loader.py CHANGED
@@ -1,10 +1,10 @@
1
- from datasets import load_dataset
2
- from datasets import load_dataset_builder
3
-
4
 
 
 
5
  data = load_dataset(
6
  "jordyvl/rvl-cdip_easyOCR",
7
- name='default',
8
  save_infos=True,
9
  )
10
 
 
1
+ from datasets import load_dataset_builder, get_dataset_config_names, get_dataset_infos, load_dataset
 
 
2
 
3
+ # print(get_dataset_infos('jordyvl/rvl-cdip_easyOCR'))
4
+ # print(get_dataset_config_names("jordyvl/rvl-cdip_easyOCR"))
5
  data = load_dataset(
6
  "jordyvl/rvl-cdip_easyOCR",
7
+ name='jordyvl--rvl-cdip_easyOCR',
8
  save_infos=True,
9
  )
10