Modify embeddings feature to only Array2D
Browse files
unsplash25k-image-embeddings.py
CHANGED
@@ -48,7 +48,8 @@ class Unsplash25kImageEmbeddingsDataset(datasets.GeneratorBasedBuilder):
|
|
48 |
features = datasets.Features(
|
49 |
{
|
50 |
"image_id": datasets.Value("string"),
|
51 |
-
"image_embedding": datasets.Features({'x': datasets.Array2D(shape=(1, 512), dtype='float16')})
|
|
|
52 |
}
|
53 |
)
|
54 |
return datasets.DatasetInfo(
|
|
|
48 |
features = datasets.Features(
|
49 |
{
|
50 |
"image_id": datasets.Value("string"),
|
51 |
+
# "image_embedding": datasets.Features({'x': datasets.Array2D(shape=(1, 512), dtype='float16')})
|
52 |
+
"image_embedding": datasets.Array2D(shape=(1, 512), dtype='float16')
|
53 |
}
|
54 |
)
|
55 |
return datasets.DatasetInfo(
|