Datasets:

toniwuest commited on
Commit
417abf8
·
verified ·
1 Parent(s): 067c9b0

Update CLEVR-Sudoku.py

Browse files
Files changed (1) hide show
  1. CLEVR-Sudoku.py +10 -11
CLEVR-Sudoku.py CHANGED
@@ -65,17 +65,16 @@ class CLEVRSudoku(datasets.GeneratorBasedBuilder):
65
  features=datasets.Features(
66
  {
67
  # TODO: Add features
68
- "sudoku": datasets.Array2D(shape=(9, 9), dtype=datasets.Image()),
69
- "options": datasets.Array2D(shape=(9, 10), dtype=datasets.Image()),
70
- # attributes as dict of features
71
- "attributes": {
72
- "key": datasets.Value("int32"),
73
- "value": datasets.Sequence(datasets.Value("string"))
74
- },
75
  "label": datasets.Array2D(shape=(9, 9), dtype="int32"),
76
  }
77
  ),
78
- supervised_keys=("image", "label"),
79
  homepage=_HOME_PAGE,
80
  citation=_CITATION,
81
  license=_LICENSE,
@@ -177,10 +176,10 @@ class CLEVRSudoku(datasets.GeneratorBasedBuilder):
177
 
178
  # Yield the parsed JSON content along with the file name
179
  yield i, {
180
- "sudoku": sudoku,
181
- "options": opt,
182
  "label": label,
183
- "attributes": attr,
184
  }
185
 
186
 
 
65
  features=datasets.Features(
66
  {
67
  # TODO: Add features
68
+ # "sudoku": datasets.Array2D(shape=(9, 9), dtype=datasets.Image()),
69
+ # "options": datasets.Array2D(shape=(9, 10), dtype=datasets.Image()),
70
+ # # attributes as dict of features
71
+ # "attributes": {
72
+ # "key": datasets.Value("int32"),
73
+ # "value": datasets.Sequence(datasets.Value("string"))
74
+ # },
75
  "label": datasets.Array2D(shape=(9, 9), dtype="int32"),
76
  }
77
  ),
 
78
  homepage=_HOME_PAGE,
79
  citation=_CITATION,
80
  license=_LICENSE,
 
176
 
177
  # Yield the parsed JSON content along with the file name
178
  yield i, {
179
+ # "sudoku": sudoku,
180
+ # "options": opt,
181
  "label": label,
182
+ # "attributes": attr,
183
  }
184
 
185