Skip to content
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

【Hackathon 7th PPSCI No.4】NO.4 DrivAerNet 论文复现 #1047

Merged
merged 109 commits into from
Jan 12, 2025

Conversation

LilaKen
Copy link
Contributor

@LilaKen LilaKen commented Dec 18, 2024

PR types

Others

PR changes

APIs、Docs

Describe

本PR的目标是复现RegDGCNN网络,将DrivAerNet处理成ppsci版API,并且加入对应的文档说明。

论文信息

年份 期刊 作者 引用数 论文PDF
2024 Design Automation Conference Mohamed Elrefaie, Angela Dai, Faez Ahmed 3 DrivAerNet: A Parametric Car Dataset for Data-Driven Aerodynamic Design and Graph-Based Drag Prediction

复现结果

预训练模型 神经网络 指标
CdPrediction_DrivAerNet_r2_100epochs_5k_best_model.pdparams RegDGCNN $R^2: 87.5%$

Copy link

paddle-bot bot commented Dec 18, 2024

Thanks for your contribution!

@wangguan1995
Copy link
Contributor

wangguan1995 commented Dec 19, 2024

开发者你好,感谢你的参与!由于你的黑客松赛题完成度较高,其PR已被锁定,请尽快完善锁定的PR,并确保在2025年1月3日前完成合入。逾期未合入PR将无法获得奖金发放。

@luotao1
Copy link
Collaborator

luotao1 commented Jan 3, 2025

📢:请尽快完善锁定的PR,并确保在2025年1月10日(不再延期)前完成合入。逾期未合入PR将无法获得奖金发放。

Comment on lines 189 to 196
"""
Initializes the RegDGCNN model with specified configurations.

Args:
args (dict): Configuration parameters including 'k' for the number of neighbors, 'emb_dims' for embedding
dimensions, and 'dropout' rate.
output_channels (int): Number of output channels (e.g., for drag prediction, this is 1).
"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. docstring移动到类下方
  2. Args列表和代码对不上

ppsci/arch/regdgcnn.py Outdated Show resolved Hide resolved
ppsci/arch/regdgcnn.py Show resolved Hide resolved
"""


from typing import Tuple
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

新增的.py文件开头建议都加上
from __future__ import annotations

@@ -0,0 +1,496 @@
# DrivAerNet: A Parametric Car Dataset for Data-Driven Aerodynamic Design and Graph-Based Drag Prediction(DrivAerNet:一个用于数据驱动空气动力学设计和基于图的阻力预测的参数化汽车数据集)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# DrivAerNet: A Parametric Car Dataset for Data-Driven Aerodynamic Design and Graph-Based Drag Prediction(DrivAerNet:一个用于数据驱动空气动力学设计和基于图的阻力预测的参数化汽车数据集)
# DrivAerNet
DrivAerNet: A Parametric Car Dataset for Data-Driven Aerodynamic Design and Graph-Based Drag Prediction(DrivAerNet:一个用于数据驱动空气动力学设计和基于图的阻力预测的参数化汽车数据集)

examples/drivaernet/conf/drivaernet.yaml Outdated Show resolved Hide resolved
examples/drivaernet/drivaernet.py Outdated Show resolved Hide resolved
@@ -166,7 +166,7 @@ def __init__(
# (Recommended)Params can be passed within cfg
# rather than passed to 'Solver.__init__' one-by-one.
self._parse_params_from_cfg(cfg)

self.cur_metric = 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 移动到self.best_metric = {上方
  2. 初始值改为float("inf")

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

solver.train里的cur_metric初始化这行删掉,并且把cur_metric改为self.cur_metric

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LilaKen 需要把solver::train函数里的所有cur_metric,改为self.cur_metric

@@ -804,6 +805,53 @@ def __call__(self):
return learning_rate


class ReduceOnPlateau(LRBase):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

补充docstring

@HydrogenSulfate
Copy link
Collaborator

@LilaKen 补充PR描述,概括该PR的内容

Copy link
Collaborator

@HydrogenSulfate HydrogenSulfate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@HydrogenSulfate HydrogenSulfate merged commit 2706d22 into PaddlePaddle:develop Jan 12, 2025
3 of 4 checks passed
@luotao1
Copy link
Collaborator

luotao1 commented Jan 13, 2025

hi, @LilaKen

  • 非常感谢你对飞桨的贡献,我们正在运营一个PFCC组织,会通过定期分享技术知识与发布开发者主导任务的形式持续为飞桨做贡献,详情可见 https://github.com/luotao1 主页说明。
  • 如果你对PFCC有兴趣,请发送邮件至 [email protected],我们会邀请你加入~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants