Skip to content

Commit

Permalink
[Doc] Add pretrained model for cylinder2d_unsteady_Re100, darcy2d and…
Browse files Browse the repository at this point in the history
… fix filename (PaddlePaddle#638)

* update pretrained model dowload link

* update pretrain model and metric for cylinder2d_unsteady

* update pretrained model for darcy2d example and fix pretrainde model filename
  • Loading branch information
HydrogenSulfate authored Nov 14, 2023
1 parent e888811 commit 6040830
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
16 changes: 16 additions & 0 deletions docs/zh/examples/cylinder2d_unsteady.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@
python cylinder2d_unsteady_Re100.py
```

=== "模型评估命令"

``` sh
# linux
wget https://paddle-org.bj.bcebos.com/paddlescience/datasets/cylinder2d_unsteady_Re100/cylinder2d_unsteady_Re100_dataset.tar
# windows
# curl https://paddle-org.bj.bcebos.com/paddlescience/datasets/cylinder2d_unsteady_Re100/cylinder2d_unsteady_Re100_dataset.tar --output cylinder2d_unsteady_Re100_dataset.tar
# unzip it
tar -xvf cylinder2d_unsteady_Re100_dataset.tar
python cylinder2d_unsteady_Re100.py mode=eval EVAL.pretrained_model_path=https://paddle-org.bj.bcebos.com/paddlescience/models/cylinder2d_unsteady_Re100/cylinder2d_unsteady_Re100_pretrained.pdparams
```

| 预训练模型 | 指标 |
|:--| :--|
| [cylinder2d_unsteady_Re100_pretrained.pdparams](https://paddle-org.bj.bcebos.com/paddlescience/models/cylinder2d_unsteady_Re100/cylinder2d_unsteady_Re100_pretrained.pdparams) | loss(Residual): 0.00398<br>MSE.continuity(Residual): 0.00126<br>MSE.momentum_x(Residual): 0.00151<br>MSE.momentum_y(Residual): 0.00120 |

## 1. 背景简介

圆柱绕流问题可以应用于很多领域。例如,在工业设计中,它可以被用来模拟和优化流体在各种设备中的流动,如风力发电机、汽车和飞机的流体动力学性能等。在环保领域,圆柱绕流问题也有应用,如预测和控制河流的洪水、研究污染物的扩散等。此外,在工程实践中,如流体动力学、流体静力学、热交换、空气动力学等领域,圆柱绕流问题也具有实际意义。
Expand Down
5 changes: 5 additions & 0 deletions docs/zh/examples/darcy2d.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
python darcy2d.py mode=eval EVAL.pretrained_model_path=https://paddle-org.bj.bcebos.com/paddlescience/models/darcy2d/darcy2d_pretrained.pdparams
```

| 预训练模型 | 指标 |
|:--| :--|
| [darcy2d_pretrained.pdparams](https://paddle-org.bj.bcebos.com/paddlescience/models/darcy2d/darcy2d_pretrained.pdparams) | loss(Residual): 0.36500<br>MSE.poisson(Residual): 0.00006 |


## 1. 背景简介

Darcy Flow是一个基于达西定律的工具,用于计算液体的流动。在地下水模拟、水文学、水文地质学和石油工程等领域中,Darcy Flow被广泛应用。
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/examples/ldc2d_steady.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
=== "模型评估命令"

``` sh
python ldc2d_steady_Re10.py mode=eval EVAL.pretrained_model_path=https://paddle-org.bj.bcebos.com/paddlescience/models/ldc2d_steady_Re10/ldc2d_steady_Re10_pretrain.pdparams
python ldc2d_steady_Re10.py mode=eval EVAL.pretrained_model_path=https://paddle-org.bj.bcebos.com/paddlescience/models/ldc2d_steady_Re10/ldc2d_steady_Re10_pretrained.pdparams
```

| 预训练模型 | 指标 |
|:--| :--|
| [ldc2d_steady_Re10_pretrain.pdparams](https://paddle-org.bj.bcebos.com/paddlescience/models/ldc2d_steady_Re10/ldc2d_steady_Re10_pretrain.pdparams) | loss(Residual): 365.36164<br>MSE.momentum_x(Residual): 0.01435<br>MSE.continuity(Residual): 0.04072<br>MSE.momentum_y(Residual): 0.02471 |
| [ldc2d_steady_Re10_pretrained.pdparams](https://paddle-org.bj.bcebos.com/paddlescience/models/ldc2d_steady_Re10/ldc2d_steady_Re10_pretrained.pdparams) | loss(Residual): 365.36164<br>MSE.momentum_x(Residual): 0.01435<br>MSE.continuity(Residual): 0.04072<br>MSE.momentum_y(Residual): 0.02471 |

## 1. 背景简介

Expand Down
4 changes: 2 additions & 2 deletions docs/zh/examples/ldc2d_unsteady.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
=== "模型评估命令"

``` sh
python ldc2d_unsteady_Re10.py mode=eval EVAL.pretrained_model_path=https://paddle-org.bj.bcebos.com/paddlescience/models/ldc2d_unsteady_Re10/ldc2d_unsteady_Re10_pretrain.pdparams
python ldc2d_unsteady_Re10.py mode=eval EVAL.pretrained_model_path=https://paddle-org.bj.bcebos.com/paddlescience/models/ldc2d_unsteady_Re10/ldc2d_unsteady_Re10_pretrained.pdparams
```

| 预训练模型 | 指标 |
|:--| :--|
| [ldc2d_unsteady_Re10_pretrain.pdparams](https://paddle-org.bj.bcebos.com/paddlescience/models/ldc2d_unsteady_Re10/ldc2d_unsteady_Re10_pretrain.pdparams) | loss(Residual): 155652.67530<br>MSE.momentum_x(Residual): 6.78030<br>MSE.continuity(Residual): 0.16590<br>MSE.momentum_y(Residual): 12.05981 |
| [ldc2d_unsteady_Re10_pretrained.pdparams](https://paddle-org.bj.bcebos.com/paddlescience/models/ldc2d_unsteady_Re10/ldc2d_unsteady_Re10_pretrained.pdparams) | loss(Residual): 155652.67530<br>MSE.momentum_x(Residual): 6.78030<br>MSE.continuity(Residual): 0.16590<br>MSE.momentum_y(Residual): 12.05981 |

## 1. 背景简介

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ PaddleScience/examples/bracket/outputs_bracket/
# 用该模型及其对应的预训练模型路径(或下载地址 url)两个参数初始化 solver
solver = ppsci.solver.Solver(
model=model,
pretrained_model_path="/path/to/pretrain.pdparams",
pretrained_model_path="/path/to/pretrained.pdparams",
)
# 在 Solver(...) 中会自动从给定的 pretrained_model_path 加载(下载)参数并赋值给 model 的对应参数
```
Expand Down

0 comments on commit 6040830

Please sign in to comment.