Similarities

Latest version: v1.2.3

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.1.2

https://github.com/shibing624/similarities

1. 新增图像相似度计算/图文相似度计算 + 图搜图/文搜图

CLIP图文匹配模型,可用于图文特征(embeddings)、相似度计算、图文检索、零样本图片分类,本项目基于PyTorch实现了CLIP模型的向量表征、构建索引(基于AutoFaiss)、批量检索、后台服务(基于FastAPI)、前端展现(基于Gradio)功能
- 支持[openai/clip-vit-base-patch32](https://huggingface.co/openai/clip-vit-base-patch32)等CLIP系列模型
- 支持[OFA-Sys/chinese-clip-vit-huge-patch14](https://huggingface.co/OFA-Sys/chinese-clip-vit-huge-patch14)等Chinese-CLIP系列模型
- 支持前后端分离部署,FastAPI后端服务,Gradio前端展现
- 支持亿级数据高效检索,基于Faiss检索,支持GPU加速
- 支持图搜图、文搜图、向量搜图
- 支持图像embedding提取、文本embedding提取
- 支持图像相似度计算、图文相似度计算


2. 新增命令行工具(CLI),可以无需代码开发,用命令行图像转向量(多卡)、建索引、批量检索、启动服务

3. 新增亿级图片gradio图像检索:
![dog-img](https://github.com/shibing624/similarities/assets/10249622/7854fc6c-5297-459d-8deb-259909c3dd44)



What's Changed
* Code refactoring by tosemml in https://github.com/shibing624/similarities/pull/15
* Faiss by shibing624 in https://github.com/shibing624/similarities/pull/19

New Contributors
* tosemml made their first contribution in https://github.com/shibing624/similarities/pull/15
* shibing624 made their first contribution in https://github.com/shibing624/similarities/pull/19

**Full Changelog**: https://github.com/shibing624/similarities/compare/1.0.5...1.1.2

1.0.5

**Full Changelog**: https://github.com/shibing624/similarities/compare/1.0.4...1.0.5

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.