Convert embeddings into float 32
Browse files
data/unsplash_embeddings.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0970f7dc19912cd6e4b88807a60797a03a125d97a26b3f98e03a328a2bf4a9b0
|
3 |
+
size 51191894
|
unsplash25k-image-embeddings.py
CHANGED
@@ -49,7 +49,7 @@ class Unsplash25kImageEmbeddingsDataset(datasets.GeneratorBasedBuilder):
|
|
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='
|
53 |
}
|
54 |
)
|
55 |
return datasets.DatasetInfo(
|
|
|
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='float32')
|
53 |
}
|
54 |
)
|
55 |
return datasets.DatasetInfo(
|