Update CLEVR-Sudoku.py
Browse files- CLEVR-Sudoku.py +1 -1
CLEVR-Sudoku.py
CHANGED
@@ -178,7 +178,7 @@ class CLEVRSudoku(datasets.GeneratorBasedBuilder):
|
|
178 |
# sudoku image paths
|
179 |
sudoku_images = json_content.get("images")
|
180 |
sudoku_images = [os.path.join(image_path, x) if x is not None else None for row in sudoku_images for x in row]
|
181 |
-
sudoku_images = [
|
182 |
|
183 |
# Extract the specific fields from the JSON
|
184 |
extracted_data = {
|
|
|
178 |
# sudoku image paths
|
179 |
sudoku_images = json_content.get("images")
|
180 |
sudoku_images = [os.path.join(image_path, x) if x is not None else None for row in sudoku_images for x in row]
|
181 |
+
sudoku_images = [sudoku_images[i:i+9] for i in range(0, len(sudoku_images), 9)]
|
182 |
|
183 |
# Extract the specific fields from the JSON
|
184 |
extracted_data = {
|