Imgfind
根据文本描述搜索本地图片的工具,powered by Rust + candle + CLIP
Install / Use
/learn @flaribbit/ImgfindREADME
基于 CLIP 的本地图片搜索工具
安装
windows 推荐使用 scoop 一键安装
scoop install https://raw.githubusercontent.com/flaribbit/imgfind/master/scoop/imgfind.json
android 可以使用 termux 下载最新 release 运行,其他系统目前只能自己编译。
使用方法
- 为目录中的所有图片文件创建 embeddings,以便搜索:
./imgfind add 目录
- 开启基于 web 的搜索页面
./imgfind serve 端口
编译问题
windows 需要设置环境变量 RUSTFLAGS=-Ctarget-feature=+crt-static
$env:RUSTFLAGS='-Ctarget-feature=+crt-static'
android 需要设置环境变量 RUSTFLAGS=-C target-feature=+fp16
export RUSTFLAGS='-C target-feature=+fp16'
模型
在 这里 下载模型,解压到 clip 目录中。
.
├── clip
│ ├── model.safetensors
│ └── tokenizer.json
└── imgfind.exe
Local image search tool based on CLIP
Install
For windows users, it is recommend to use scoop
scoop install https://raw.githubusercontent.com/flaribbit/imgfind/master/scoop/imgfind.json
For android users, you can download latest release in termux. For other platforms, you may clone this repo and compile it yourself.
Usage
- Create embeddings for images in
somepathfor search:
./imgfind add somepath
- Start a web server on
portfor user interface:
./imgfind serve port
Model
Download model from here, then extract files into clip folder.
.
├── clip
│ ├── model.safetensors
│ └── tokenizer.json
└── imgfind.exe
FAQ during build process
On windows you need to set env RUSTFLAGS=-C target-feature=+crt-static
$env:RUSTFLAGS='-C target-feature=+crt-static'
On android you need to set env RUSTFLAGS=-C target-feature=+fp16
export RUSTFLAGS='-C target-feature=+fp16'
Related Skills
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
groundhog
399Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
workshop-rules
Materials used to teach the summer camp <Data Science for Kids>
