Hugging Face Blog·· 2022-03-16AI 评分22
用 🤗 datasets 构建图像搜索应用
Image search with 🤗 datasets
AI 导读
Hugging Face 的 🤗 datasets 库新增图像特征类型,可结合 sentence_transformers 与 faiss 为图像数据集建立相似度索引,实现图像搜索。文中以英国图书馆数字化书籍插图数据集为例,通过 ImageFolder 加载器直接读取含 image 和 label 特征的 10000 行数据,label 对应书籍出版年份。
来源:Hugging Face Blog · huggingface.co