Commit a478a183 authored by zhanggezhong's avatar zhanggezhong
Browse files

Update README.md

parent ca1a531d
Pipeline #1946 canceled with stages
...@@ -28,17 +28,12 @@ Faiss 是一个用于高效相似性搜索和密集向量聚类的库。它提 ...@@ -28,17 +28,12 @@ Faiss 是一个用于高效相似性搜索和密集向量聚类的库。它提
组件支持 组件支持
+ Python 3.7、3.8、3.9、3.10 + Python 3.7、3.8、3.9、3.10
### 1、使用pip方式安装 ### 使用源码编译方式安装
mmcv whl包下载目录:[http://10.6.10.68:8000/debug/faiss/dtk-24.04.1/](http://10.6.10.68:8000/debug/faiss/dtk-24.04.1/),选择对应的pytorch版本和python版本下载对应faiss的whl包
```shell
pip install faiss* (下载的faiss的whl包)
```
### 2、使用源码编译方式安装
基于光源pytorch基础镜像环境:镜像下载地址:[https://sourcefind.cn/#/image/dcu/pytorch](https://sourcefind.cn/#/image/dcu/pytorch),根据pytorch、python、dtk及系统下载对应的镜像版本。 基于光源pytorch基础镜像环境:镜像下载地址:[https://sourcefind.cn/#/image/dcu/pytorch](https://sourcefind.cn/#/image/dcu/pytorch),根据pytorch、python、dtk及系统下载对应的镜像版本。
#### 源码编译安装 #### 源码编译安装
- 代码下载 - 代码下载
```shell ```shell
git clone http://10.6.10.68/dcutoolkit/deeplearing/faiss.git # 根据编译需要切换分支 git clone https://developer.sourcefind.cn/codes/OpenDAS/faiss.git # 根据编译需要切换分支
``` ```
- 提供2种源码编译方式(进入faiss目录): - 提供2种源码编译方式(进入faiss目录):
``` ```
...@@ -68,7 +63,7 @@ make && make install ...@@ -68,7 +63,7 @@ make && make install
## 验证 ## 验证
验证安装 验证安装:__dcu_version__会返回对应版本的dtk版本号
``` ```
python3 python3
...@@ -78,7 +73,7 @@ Type "help", "copyright", "credits" or "license" for more information. ...@@ -78,7 +73,7 @@ Type "help", "copyright", "credits" or "license" for more information.
>>> faiss.__version__ >>> faiss.__version__
'1.7.2' '1.7.2'
>>> faiss.__dcu_version__ >>> faiss.__dcu_version__
'1.7.2+das.dtk24041' '1.7.2+das.dtk2404'
>>> >>>
``` ```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment