@@ -206,30 +206,79 @@ PaddleScience 提供了两种复杂几何类型,如下所示:
206
206
207
207
# ### 1.4.3 安装第三方库[可选]
208
208
209
- PaddleScience 提供了多种第三方库供用户在开发时使用,这些库位于 ` ppsci/externals` 目录下,可以通过 ` git submodule` 命令进行下载,然后根据需要进行安装和使用 。以下是具体操作步骤:
209
+ PaddleScience 提供了多种第三方库供用户在开发时使用,这些库位于 ` ppsci/externals` 目录下,可以通过 ` git submodule` 命令进行下载、安装,或者直接安装我们提供的 whl 包 。以下是具体操作步骤:
210
210
211
- === " 下载 "
211
+ === " 安装 "
212
212
213
- ` ` ` sh
214
- cd PaddleScience
213
+ === " deepali"
215
214
216
- # 下载全部第三方库
217
- git submodule update --init ppsci/externals/
215
+ ` ` ` sh
216
+ cd PaddleScience
217
+ git submodule update --init ppsci/externals/deepali
218
+ # install from source(recommended)
219
+ python -m pip install -e ppsci/externals/deepali
218
220
219
- # 下载指定第三方库(以 tensorly 为例)
220
- git submodule update --init ppsci/externals/tensorly
221
- ```
221
+ # install from whl
222
+ python -m pip install https://paddle-qa.bj.bcebos.com/deepali/whl/latest/dist/hf_deepali-0.1.0-py3-none-any.whl
223
+ ```
222
224
223
- === " 安装"
225
+ === " open3d"
226
+
227
+ ` ` ` sh
228
+ cd PaddleScience
229
+ git submodule update --init ppsci/externals/deepali
230
+ # install from whl(cuda 118)(recommended)
231
+ python -m pip install https://paddle-qa.bj.bcebos.com/Open3D/whl/cuda11.8/latest/open3d-0.18.0-cp310-cp310-linux_x86_64.whl
232
+ # install from whl(cuda 123)(recommended)
233
+ python -m pip install https://paddle-qa.bj.bcebos.com/Open3D/whl/cuda12.3/latest/open3d-0.18.0-cp310-cp310-linux_x86_64.whl
234
+
235
+ # install from source: https://github.com/PFCCLab/Open3D?tab=readme-ov-file#build-and-install
236
+ ` ` `
224
237
225
- 以 ` tensorly ` 为例,安装方法如下:
238
+ === " paddle_harmonics "
226
239
227
- ` ` ` sh
228
- cd ppsci/externals/tensorly
229
- pip install -e .
230
- ` ` `
240
+ ` ` ` sh
241
+ cd PaddleScience
242
+ git submodule update --init ppsci/externals/paddle_harmonics
243
+ # install from source(recommended)
244
+ python -m pip install -e ppsci/externals/paddle_harmonics
245
+
246
+ # install from whl(cuda 118)
247
+ python -m pip install https://paddle-qa.bj.bcebos.com/paddle_harmonics/whl/latest/dist/paddle_harmonics-0.1.0-py3-none-any.whl
248
+ ` ` `
231
249
232
- 其他库的安装方法请参考相应的 GitHub 项目主页上的说明。
250
+ === " paddle_scatter"
251
+
252
+ ` ` ` sh
253
+ cd PaddleScience
254
+ git submodule update --init ppsci/externals/paddle_scatter
255
+ # install from source(recommended)
256
+ python -m pip install -e ppsci/externals/paddle_scatter
257
+ ` ` `
258
+
259
+ === " tensorly"
260
+
261
+ ` ` ` sh
262
+ cd PaddleScience
263
+ git submodule update --init ppsci/externals/tensorly
264
+ # install from source(recommended)
265
+ python -m pip install -e ppsci/externals/tensorly
266
+
267
+ # install from whl
268
+ python -m pip install https://paddle-qa.bj.bcebos.com/tensorly/whl/latest/dist/tensorly-0.9.0-py3-none-any.whl
269
+ ` ` `
270
+
271
+ === " warp"
272
+
273
+ ` ` ` sh
274
+ cd PaddleScience
275
+ git submodule update --init ppsci/externals/warp
276
+ # install from source(recommended)
277
+ python -m pip install -e ppsci/externals/warp
278
+
279
+ # install from whl, see: https://nvidia.github.io/warp/installation.html#
280
+ python -m pip install warp-lang
281
+ ` ` `
233
282
234
283
=== " 使用"
235
284
0 commit comments