https://github.com/vaaaaanquish/rust-ann-search-example
Image search example by approximate nearest-neighbor library In Rust
https://github.com/vaaaaanquish/rust-ann-search-example
Last synced: 1 day ago
JSON representation
Image search example by approximate nearest-neighbor library In Rust
- Host: GitHub
- URL: https://github.com/vaaaaanquish/rust-ann-search-example
- Owner: vaaaaanquish
- License: mit
- Created: 2021-08-07T14:18:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-09T20:08:18.000Z (over 3 years ago)
- Last Synced: 2025-03-30T09:41:27.326Z (about 1 month ago)
- Language: Rust
- Size: 7.81 KB
- Stars: 17
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-ann-search-example
Image search example by approximate nearest-neighbor library In Rustuse
```
- tensorflow 0.17.0
- pretrain ResNet50
- hora (Rust ANN library) 0.1.1
```image -> resize -> resnet embedding -> ANN indexing -> search
# Usage
Plese put image files in `./img` directory. If If you don't have a handy file, there is a script to create a dataset in docker image.
```sh
docker build -t ann .
docker run -it ann# if make dataset by food101
[docker]$ ./make_food101_dataset.sh# running
[docker]$ cargo run
```