Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
3c0cedc
fix(test=document_fix)
HydrogenSulfate Nov 23, 2023
ebb31a1
Merge branch 'develop' of https://github.com/HydrogenSulfate/PaddleSc…
HydrogenSulfate Nov 23, 2023
21c216c
Merge branch 'develop' of https://github.com/HydrogenSulfate/PaddleSc…
HydrogenSulfate Nov 24, 2023
01bf607
Merge branch 'develop' of https://github.com/HydrogenSulfate/PaddleSc…
HydrogenSulfate Nov 24, 2023
a1dfb17
Merge branch 'develop' of github.com:HydrogenSulfate/PaddleScience in…
HydrogenSulfate Nov 28, 2023
865de8d
Merge branches 'develop' and 'develop' of github.com:HydrogenSulfate/…
HydrogenSulfate Dec 2, 2023
70324ae
Merge branch 'develop' of github.com:HydrogenSulfate/PaddleScience in…
HydrogenSulfate Dec 8, 2023
1a22676
Merge branch 'develop' of github.com:HydrogenSulfate/PaddleScience in…
HydrogenSulfate Dec 11, 2023
a345539
Merge branch 'develop' of github.com:HydrogenSulfate/PaddleScience in…
HydrogenSulfate Dec 14, 2023
22feda0
Merge branch 'develop' of github.com:HydrogenSulfate/PaddleScience in…
HydrogenSulfate Dec 29, 2023
fa3ec47
Merge branch 'develop' of github.com:HydrogenSulfate/PaddleScience in…
HydrogenSulfate Jan 2, 2024
b4c2087
Merge branch 'develop' of github.com:HydrogenSulfate/PaddleScience in…
HydrogenSulfate Jan 8, 2024
264da4b
Merge branch 'develop' of github.com:HydrogenSulfate/PaddleScience in…
HydrogenSulfate Jan 19, 2024
93c3edd
Merge branch 'develop' of github.com:HydrogenSulfate/PaddleScience in…
HydrogenSulfate Jan 26, 2024
f5edb52
Merge branch 'develop' of github.com:HydrogenSulfate/PaddleScience in…
HydrogenSulfate Feb 27, 2024
4e580b9
Merge branch 'develop' of github.com:HydrogenSulfate/PaddleScience in…
HydrogenSulfate Feb 27, 2024
8f9ae46
Merge branch 'develop' of github.com:HydrogenSulfate/PaddleScience in…
HydrogenSulfate Mar 13, 2024
e8570a1
Merge branch 'develop' of github.com:HydrogenSulfate/PaddleScience in…
HydrogenSulfate May 6, 2024
da70d0e
Merge branch 'develop' of github.com:HydrogenSulfate/PaddleScience in…
HydrogenSulfate May 8, 2024
b26b4fc
Merge branch 'develop' of github.com:HydrogenSulfate/PaddleScience in…
HydrogenSulfate May 14, 2024
927b641
optimize importing
HydrogenSulfate May 14, 2024
6e13efb
添加共创计划项目链接
HydrogenSulfate May 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion docs/zh/cooperation.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 共创计划

PaddleScience 作为一个开源项目,欢迎来各行各业的伙伴携手共建基于飞桨的 AI for Science 领域顶尖开源项目, 打造活跃的前瞻性的 AI for Science 开源社区,建立产学研闭环,推动科研创新与产业赋能。点击了解 [飞桨AI for Science共创计划](https://www.paddlepaddle.org.cn/science)
PaddleScience 作为一个开源项目,欢迎来各行各业的伙伴携手共建基于飞桨的 AI for Science 领域顶尖开源项目,打造活跃的前瞻性的 AI for Science 开源社区,建立产学研闭环,推动科研创新与产业赋能。点击了解 [飞桨 AI for Science 共创计划](https://www.paddlepaddle.org.cn/science)

## 项目精选

- 使用嵌套傅立叶神经算子进行实时高分辨二氧化碳地质封存预测: <https://aistudio.baidu.com/projectdetail/7390303>
- 多源异构数据与机理融合的极端天气预报算法研究: <https://aistudio.baidu.com/projectdetail/7586532>
- 基于强化学习的复杂系统控制 —— 以疾病传播: <https://aistudio.baidu.com/projectdetail/7520457>
- 基于 Transformer 架构的流体流动降阶模拟: <https://aistudio.baidu.com/projectdetail/7509905>
- 基于 Transformer 的神经算子预测模型: <https://aistudio.baidu.com/projectdetail/7309026>
- 基于 PINN 方法求解可压缩流体欧拉方程组的正问题: <https://aistudio.baidu.com/projectdetail/7502148>
- 基于连续演化数据预测双曲方程简断解: <https://aistudio.baidu.com/projectdetail/7620492>
- 拉格朗日粒子流体 Benchmark 开源数据集: <https://aistudio.baidu.com/projectdetail/7507477>
- 基于 PINN 方法求解可压缩流体欧拉方程组的正问题: <https://aistudio.baidu.com/projectdetail/7593837>
- 数据驱动 AI 模型的 PDE 方程可解释性评估: <https://aistudio.baidu.com/projectdetail/7463477>
- 数据驱动 AI 模型的 PDE 方程可解释性评估: <https://aistudio.baidu.com/projectdetail/7512749>
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ nav:
- NowcastNet: zh/examples/nowcastnet.md
- DGMR: zh/examples/dgmr.md
- EarthFormer: zh/examples/earthformer.md
- API文档:
- API 文档:
- ppsci:
- ppsci.arch: zh/api/arch.md
- ppsci.autodiff: zh/api/autodiff.md
Expand Down
17 changes: 10 additions & 7 deletions ppsci/data/dataset/dgmr_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,15 @@

from __future__ import annotations

import importlib
from typing import Tuple

import numpy as np
import paddle
from numpy.random import default_rng
from paddle import io

try:
import datasets
except ModuleNotFoundError:
pass


class DGMRDataset(paddle.io.Dataset):
class DGMRDataset(io.Dataset):
"""
Dataset class for DGMR (Deep Generative Model for Radar) model.
This open-sourced UK dataset has been mirrored to HuggingFace Datasets https://huggingface.co/datasets/openclimatefix/nimrod-uk-1km.
Expand Down Expand Up @@ -59,6 +55,13 @@ def __init__(
self.label_keys = label_keys
self.num_input_frames = num_input_frames
self.num_target_frames = num_target_frames
if not importlib.util.find_spec("datasets"):
raise ModuleNotFoundError(
"Please install datasets with `pip install datasets`"
" before exporting onnx model."
)
import datasets

self.reader = datasets.load_dataset(
dataset_path, "sample", split=split, streaming=True, trust_remote_code=True
)
Expand Down
14 changes: 2 additions & 12 deletions ppsci/data/dataset/enso_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,14 @@
from __future__ import annotations

import importlib
from pathlib import Path
from typing import Dict
from typing import Optional
from typing import Tuple

import numpy as np
from paddle import io

try:
from pathlib import Path

import xarray as xr
except ModuleNotFoundError:
pass

NINO_WINDOW_T = 3 # Nino index is the sliding average over sst, window size is 3
CMIP6_SST_MAX = 10.198975563049316
CMIP6_SST_MIN = -16.549121856689453
Expand Down Expand Up @@ -146,6 +140,7 @@ def read_raw_data(ds_dir, out_dir=None):
out_dir (str): the path of output. Defaults to None.

"""
import xarray as xr

train_cmip = xr.open_dataset(Path(ds_dir) / "CMIP_train.nc").transpose(
"year", "month", "lat", "lon"
Expand Down Expand Up @@ -275,11 +270,6 @@ def __init__(
"To use RadarDataset, please install 'xarray' via: `pip install "
"xarray` first."
)
if importlib.util.find_spec("pathlib") is None:
raise ModuleNotFoundError(
"To use RadarDataset, please install 'pathlib' via: `pip install "
"pathlib` first."
)
self.input_keys = input_keys
self.label_keys = label_keys
self.data_dir = data_dir
Expand Down