• Stars
    star
    142
  • Rank 257,146 (Top 6 %)
  • Language
    Rust
  • Created about 1 year ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

根据文本描述搜索本地图片的工具,powered by Rust + candle + CLIP

基于 CLIP 的本地图片搜索工具

image

English version

安装

windows 推荐使用 scoop 一键安装

scoop install https://raw.githubusercontent.com/flaribbit/imgfind/master/scoop/imgfind.json

android 可以使用 termux 下载最新 release 运行,其他系统目前只能自己编译。

使用方法

  1. 为目录中的所有图片文件创建 embeddings,以便搜索:
./imgfind add 目录
  1. 开启基于 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

  1. Create embeddings for images in somepath for search:
./imgfind add somepath
  1. Start a web server on port for 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'

More Repositories

1

vitepress-theme-sakura

A lovely blog theme for vitepress. 可爱又轻量的二次元博客主题!大概是隔壁 wordpress sakura 主题的移植吧
Vue
107
star
2

video-concat-with-ffmpeg

1-key video concat with ffmpeg 视频一键合并小工具
C++
41
star
3

bakadict

离线的命令行日语词典
Rust
38
star
4

love2d-lua-websocket

websocket client pure lua implement for love2d
Lua
37
star
5

click-to-copy-equations

Click to copy equations in Wikipedia
JavaScript
30
star
6

anime-anki

把字幕转换成 Anki 卡片,从而快乐背单词的工具。
Python
27
star
7

indenta

Fix indent of first paragraph in typst.
Typst
19
star
8

paper-translator

论文翻译器!使用百度翻译把 pdf 格式的英文论文转换成中英文对照的 html 文件!
Python
17
star
9

xkbot-QQbot

基于go-cqhttp的QQ机器人
TypeScript
17
star
10

bilibili-manga-spider

bilibili漫画爬虫
Python
13
star
11

Sketchfab-dl

Sketchfab's downloader in .NET Standard
C#
10
star
12

typst-tetris

Play tetris in typst
Typst
9
star
13

numbly

A package that helps you to specify different numbering formats for different levels of headings.
Typst
7
star
14

Fla-Fla-Flan

HTML5 remake of flash game "Fla-Fla-Flan".
HTML
6
star
15

fxlua

lua5.3.6 移植到 CASIO fx-9860 计算器
C
4
star
16

time-to-break

Every 20 minutes, this program will remind you to take a break by pressing Win+D.
Rust
3
star
17

gif-wizard

Vue
3
star
18

v-tetris-field

A vue3 component which draws tetris game field from fumen code.
Vue
3
star
19

mwebsocket

C
3
star
20

love2d-image-transition-shader

Lua
2
star
21

FxQr

移植到casiofx9860上的二维码生成器。(QRCode generator on casio fx9860)
C
2
star
22

hoshitsuki-vn

Vue
2
star
23

my-hashmap

仿照 lua table 原理实现的哈希表,略有改动
C
2
star
24

STM32F103C8T6_LCD12864_serial_con

C
2
star
25

9860sdk_widget

送给新人的9860sdk编程,仿原生的控件
C
1
star
26

vscode-SDL-snake

C
1
star
27

9860gii-danmaku

C
1
star
28

love2d-c-library-template

主要解决安卓问题
C
1
star
29

vite-electron

vite + vue3 + electron, with minimal dependencies
JavaScript
1
star
30

STM32F103ZET6_OLED_driver

STM32F103ZET6_OLED_driver
C
1
star
31

typst-sdu-master-thesis

Typst
1
star
32

bilibili-direct-download

add download buttons to bilibili video page
JavaScript
1
star
33

zotero-link

修复 notion 到 zotero 的链接
Rust
1
star
34

H5test

learning h5
JavaScript
1
star
35

xs-pid-python-coolq-QQbot

Python
1
star
36

lyrics

收集了一些我喜欢的歌曲的歌词
TeX
1
star
37

techrust

Rust
1
star