-
Notifications
You must be signed in to change notification settings - Fork 230
【PPSCI Export&Infer No.8】Add export and inference for amgnet_cylinder #1169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for your contribution! |
docs/zh/examples/amgnet.md
Outdated
=== "amgnet_airfoil" | ||
|
||
``` sh | ||
python amgnet_airfoil.py mode=export EVAL.pretrained_model_path=https://paddle-org.bj.bcebos.com/paddlescience/models/amgnet/amgnet_airfoil_pretrained.pdparams |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python amgnet_airfoil.py mode=export EVAL.pretrained_model_path=https://paddle-org.bj.bcebos.com/paddlescience/models/amgnet/amgnet_airfoil_pretrained.pdparams | |
python amgnet_airfoil.py mode=export |
docs/zh/examples/amgnet.md
Outdated
=== "amgnet_cylinder" | ||
|
||
``` sh | ||
python amgnet_cylinder.py mode=export EVAL.pretrained_model_path=https://paddle-org.bj.bcebos.com/paddlescience/models/amgnet/amgnet_cylinder_pretrained.pdparams |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python amgnet_cylinder.py mode=export EVAL.pretrained_model_path=https://paddle-org.bj.bcebos.com/paddlescience/models/amgnet/amgnet_cylinder_pretrained.pdparams | |
python amgnet_cylinder.py mode=export |
docs/zh/examples/amgnet.md
Outdated
# curl https://paddle-org.bj.bcebos.com/paddlescience/datasets/AMGNet/data.zip -o data.zip | ||
# unzip it | ||
unzip data.zip | ||
python amgnet_airfoil.py mode=infer EVAL.pretrained_model_path=https://paddle-org.bj.bcebos.com/paddlescience/models/amgnet/amgnet_airfoil_pretrained.pdparams |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python amgnet_airfoil.py mode=infer EVAL.pretrained_model_path=https://paddle-org.bj.bcebos.com/paddlescience/models/amgnet/amgnet_airfoil_pretrained.pdparams | |
python amgnet_airfoil.py mode=infer |
docs/zh/examples/amgnet.md
Outdated
# curl https://paddle-org.bj.bcebos.com/paddlescience/datasets/AMGNet/data.zip -o data.zip | ||
# unzip it | ||
unzip data.zip | ||
python amgnet_cylinder.py mode=infer EVAL.pretrained_model_path=https://paddle-org.bj.bcebos.com/paddlescience/models/amgnet/amgnet_cylinder_pretrained.pdparams |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python amgnet_cylinder.py mode=infer EVAL.pretrained_model_path=https://paddle-org.bj.bcebos.com/paddlescience/models/amgnet/amgnet_cylinder_pretrained.pdparams | |
python amgnet_cylinder.py mode=infer |
examples/amgnet/amgnet_airfoil.py
Outdated
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
多个空行请缩减为一行
examples/amgnet/amgnet_airfoil.py
Outdated
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同
examples/amgnet/amgnet_airfoil.py
Outdated
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同
examples/amgnet/amgnet_airfoil.py
Outdated
) | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
删除多余空行
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
examples/amgnet/amgnet_airfoil.py
一样的问题,请一起修改
@jiangandhao 可参考 PaddleScience/examples/allen_cahn/conf/allen_cahn_piratenet.yaml Lines 82 to 98 in e0f0245
添加INFER字段到配置文件中 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应该没问题了
PR标题请按照规范修改 |
已修改 |
请安装precommit工具,来通过CodeStyle流水线的格式检查 |
@jiangandhao 你好,代码无法跑通,如果自测可以跑通的话请贴上跑通模型导出和推理的截图到PR中,谢谢 |
|
上面这个截图里的是普通的测试流水线,并不会测试你PR新增的功能,而我说的自测是指:你这个PR是支持amgnet两个模型的导出和推理,那你需要本地自测是否能够跑通导出、推理,以及推理结果是否正确(和eval的结果相同)。 |
另外给开源仓库提交PR时,请安装pre-commit: |
PR types
PR changes
Describe