Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Faiss
Commits
a478a183
Commit
a478a183
authored
Nov 21, 2024
by
zhanggezhong
Browse files
Update README.md
parent
ca1a531d
Pipeline
#1946
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
README.md
README.md
+4
-9
No files found.
README.md
View file @
a478a183
...
@@ -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 http
s
://
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.dtk2404
1
'
'1.7.2+das.dtk2404'
>>>
>>>
```
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment