--- task_categories: - image-feature-extraction --- # Google Image Malaysia Location Embedding Original dataset https://huggingface.co/datasets/malaysia-ai/crawl-google-image-malaysia-location, we convert to embedding using https://huggingface.co/google/siglip-base-patch16-512 Source code at https://github.com/mesolitica/malaysian-dataset/tree/master/vlm/dedup-malaysia-location ## how-to We use MosaicML for faster indexing, ```python from streaming import MDSWriter from streaming.base.format.mds.encodings import Encoding, _encodings from streaming import LocalDataset import streaming import numpy as np from tqdm import tqdm class Float32(Encoding): def encode(self, obj) -> bytes: return obj.tobytes() def decode(self, data: bytes): return np.frombuffer(data, np.float32) _encodings['float32'] = Float32 dataset = LocalDataset('google-image-malaysia-location-embedding') ```