-
Notifications
You must be signed in to change notification settings - Fork 226
Add Climateformer for climate prediction #1211
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
base: develop
Are you sure you want to change the base?
Conversation
使用pre-commit对代码格式化。
add Climateformer model for climate prediction add docs for Climateformer add examples for Climateformer add era5climate_dataset for Climateformer
Thanks for your contribution! |
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.
USE_SAMPLED_DATA: false | ||
|
||
# set train data path | ||
TRAIN_FILE_PATH: /data/jinqizhao/ERA5/ |
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.
删除/jinqizhao
DATA_STD_PATH: ./datasets/era5/stat/std.nc | ||
|
||
# set evaluate data path | ||
VALID_FILE_PATH: /data/jinqizhao/ERA5/ |
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.
删除/jinqizhao
examples/climateformer/main.py
Outdated
"sampler": { | ||
"name": "BatchSampler", | ||
}, |
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.
可删除
"sampler": { | |
"name": "BatchSampler", | |
}, |
examples/climateformer/main.py
Outdated
"sampler": { | ||
"name": "BatchSampler", | ||
}, |
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.
可删除
"sampler": { | |
"name": "BatchSampler", | |
}, |
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.
跟develop合并一下,不要删除无关代码
ppsci/arch/climateformer.py
Outdated
# MultiDecoder | ||
class Decoder(nn.Layer): | ||
def __init__(self, C_hid: int, C_out: int, N_S: int): | ||
super(Decoder, self).__init__() |
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.
super(Decoder, self).__init__() | |
super().__init__() |
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.
请在mkdocs.yml里添加当前案例文档
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.
请在arch.md
中加入Climateformer
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.
请在dataset.md
中加入ERA5ClimateDataset
Changes for Climateformer
@@ -0,0 +1,265 @@ | |||
# Climateformer | |||
|
|||
开始训练、评估前,请下载ERA5数据集文件 |
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.
请添加ERA5数据集下载链接
=== "模型评估命令" | ||
|
||
``` sh | ||
python main.py mode=eval EVAL.pretrained_model_path=./outputs_climateformer/checkpoints/best_model.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.
模型已经上传,将./outputs_climateformer/checkpoints/best_model.pdparams修改为https://paddle-org.bj.bcebos.com/paddlescience/models/climateformer/climateformer.pdparams
|
||
开始训练、评估前,请下载ERA5数据集文件 | ||
|
||
开始评估前,请下载或训练生成预训练模型 |
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.
--8<-- | ||
``` | ||
|
||
### 2.4 Climateformer模型结构 |
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.
模型结构最好提供一张图来进行说明
--8<-- | ||
examples/climateformer/conf/climateformer.yaml | ||
--8<-- | ||
``` No newline at end of file |
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 types
Others
PR changes
Others
Describe
add Climateformer model for climate prediction
add docs for Climateformer
add examples for Climateformer
add era5climate_dataset for Climateformer