Code Monkey home page Code Monkey logo

imgfind's Introduction

基于 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'

imgfind's People

Contributors

chuigda avatar cousinze avatar flaribbit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

imgfind's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.