Skip to content

Commit 23f15ff

Browse files
authored
Merge pull request #1 from wangguan1995/bugfix_wg
fix
2 parents 23a95e8 + 75753d5 commit 23f15ff

File tree

6 files changed

+160
-262
lines changed

6 files changed

+160
-262
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: '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'
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'
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: 5 additions & 8 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: 4
13+
num_data_workers: 0
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,19 +278,16 @@ train_config:
278278

279279

280280
# inference settings
281-
ckpt_path: data/pd_finetune_b01_m0_n8192.tar
282-
num_demos: 1
283281
tqdm: False
284-
save_pred: False
285282

286283
infer_config:
287284
train_path: 'data/possion_64/poisson_64_e15_50_train.h5' # pick demos
288285
test_path: 'data/possion_64/poisson_64_e15_50_test.h5'
289286
scales_path: 'data/possion_64/poisson_64_e5_15_train_scale.npy'
290-
291-
num_data_workers: 1
287+
ckpt_path: checkpoint/finetune_b01_m0_n8192.pdparams
288+
num_data_workers: 0
292289
subsample: 1
293-
# num_demos: 0
290+
num_demos: 0
294291
shuffle: False
295292
nx: 64
296293
nt: 64

0 commit comments

Comments
 (0)