Update Populus_Stomatal_Images_Datasets.py
Browse files
Populus_Stomatal_Images_Datasets.py
CHANGED
@@ -85,7 +85,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
85 |
"image_id": datasets.Value("string"),
|
86 |
"species": datasets.Value("string"),
|
87 |
"scientific_name": datasets.Value("string"),
|
88 |
-
"pics_array": datasets
|
89 |
"image_resolution": {
|
90 |
"width": datasets.Value("int32"),
|
91 |
"height": datasets.Value("int32"),
|
|
|
85 |
"image_id": datasets.Value("string"),
|
86 |
"species": datasets.Value("string"),
|
87 |
"scientific_name": datasets.Value("string"),
|
88 |
+
"pics_array": datasets(dtype="uint8", shape=(3, 768, 1024)), # Assuming images are RGB with shape 768x1024
|
89 |
"image_resolution": {
|
90 |
"width": datasets.Value("int32"),
|
91 |
"height": datasets.Value("int32"),
|