milvus的以图搜图部署操作
Easul Lv6

使用 milvus+towhee 实现 以图搜图 的功能

折叠代码块BASH 复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 安装docker
# 参考在deepin安装docker的步骤: https://blog.212490197.xyz/article/program/bigdata/big-data-with-docker/#%E5%9C%A8deepin%E5%AE%89%E8%A3%85docker
# 然后安装bootcamp
# 参考链接
# https://github.com/milvus-io/bootcamp/tree/master/solutions/image/reverse_image_search
# 这里使用选项1
mkdir -p ~/workspace/milvus/
cd ~/workspace/milvus
git clone https://github.com/milvus-io/bootcamp.git
cd bootcamp/solutions/image/reverse_image_search
docker compose up -d
# 所需要的图片可以从这里进行下载,使用的是PASCAL VOC数据集:
# http://host.robots.ox.ac.uk/pascal/VOC/
# 上传图片时报错,那么可以参考如下issue
# https://github.com/milvus-io/bootcamp/issues/1127
# 进入img-search-webserver
docker exec -it img-search-webserver /bin/bash
# 修改towhee的版本
pip3 install towhee==0.9.0 -i https://pypi.douban.com/simple/
# 退出重启img-search-webserver
docker restart img-search-webserver
 评论
Powered By Valine
v1.5.2