JLD commited on
Commit
9242eb8
1 Parent(s): 7b28a1e

Modify embeddings feature to only Array2D

Browse files
Files changed (1) hide show
  1. unsplash25k-image-embeddings.py +2 -1
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(