Skip to content

Commit 48c2302

Browse files
authored
Merge pull request #2 from xiaoyewww/revert-1-bugfix_wg
Revert "fix"
2 parents 23f15ff + 024b9d4 commit 48c2302

File tree

6 files changed

+262
-160
lines changed

6 files changed

+262
-160
lines changed

examples/data_efficient_nopt/config/data_efficient_nopt_fno_helmholtz.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ train_config:
8989

9090
helm-64-scale-o5_15: &helm_64_o5_15
9191
<<: *helmholtz
92-
train_path: '/workspace/PaddleScience_repo/data_efficient_nopt/examples/data_efficient_nopt/data/helmholtz_64/helmholtz_64/helmholtz_64_o5_15_train.h5'
93-
val_path: '/workspace/PaddleScience_repo/data_efficient_nopt/examples/data_efficient_nopt/data/helmholtz_64/helmholtz_64/helmholtz_64_o5_15_val.h5'
94-
test_path: '/workspace/PaddleScience_repo/data_efficient_nopt/examples/data_efficient_nopt/data/helmholtz_64/helmholtz_64/helmholtz_64_o5_15_test.h5'
95-
scales_path: '/workspace/PaddleScience_repo/data_efficient_nopt/examples/data_efficient_nopt/data/helmholtz_64/helmholtz_64/helmholtz_64_o5_15_train_scale.npy'
92+
train_path: 'data/helmholtz_64/helmholtz_64/helmholtz_64_o5_15_train.h5'
93+
val_path: 'data/helmholtz_64/helmholtz_64/helmholtz_64_o5_15_val.h5'
94+
test_path: 'data/helmholtz_64/helmholtz_64/helmholtz_64_o5_15_test.h5'
95+
scales_path: 'data/helmholtz_64/helmholtz_64/helmholtz_64_o5_15_train_scale.npy'
9696
batch_size: 128
9797
in_dim: 3
9898
out_dim: 1

examples/data_efficient_nopt/config/data_efficient_nopt_fno_poisson.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sweep_id: ''
1010

1111
train_config:
1212
default: &DEFAULT
13-
num_data_workers: 0
13+
num_data_workers: 4
1414
# model
1515
model: 'fno'
1616
depth: 5
@@ -131,7 +131,7 @@ train_config:
131131
blur: [0, 1]
132132

133133

134-
pois_64_finetune_e5_15: &pois_64_e5_15_ft
134+
pois-64-finetune-e5_15: &pois_64_e5_15_ft
135135
<<: *poisson
136136
train_path: 'data/possion_64/poisson_64_e5_15_train.h5'
137137
val_path: 'data/possion_64/poisson_64_e5_15_val.h5'
@@ -278,16 +278,19 @@ train_config:
278278

279279

280280
# inference settings
281+
ckpt_path: data/pd_finetune_b01_m0_n8192.tar
282+
num_demos: 1
281283
tqdm: False
284+
save_pred: False
282285

283286
infer_config:
284287
train_path: 'data/possion_64/poisson_64_e15_50_train.h5' # pick demos
285288
test_path: 'data/possion_64/poisson_64_e15_50_test.h5'
286289
scales_path: 'data/possion_64/poisson_64_e5_15_train_scale.npy'
287-
ckpt_path: checkpoint/finetune_b01_m0_n8192.pdparams
288-
num_data_workers: 0
290+
291+
num_data_workers: 1
289292
subsample: 1
290-
num_demos: 0
293+
# num_demos: 0
291294
shuffle: False
292295
nx: 64
293296
nt: 64

0 commit comments

Comments
 (0)