Skip to content

Commit

Permalink
Make number of training samples per year configurable for FCN AFNO ex…
Browse files Browse the repository at this point in the history
…ample (#115)

* Update config.yaml

* Update train_era5.py
  • Loading branch information
ktangsali authored Sep 28, 2023
1 parent 0dd6368 commit 674086c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/weather/fcn_afno/conf/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ hydra:
wb_artifacts: False

start_epoch: 0

num_samples_per_year_train: 1456
2 changes: 1 addition & 1 deletion examples/weather/fcn_afno/train_era5.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def main(cfg: DictConfig) -> None:
data_dir="/data/train/",
stats_dir="/data/stats/",
channels=[i for i in range(20)],
num_samples_per_year=1456, # Need better shard fix
num_samples_per_year=cfg.num_samples_per_year_train,
batch_size=2,
patch_size=(8, 8),
num_workers=8,
Expand Down

0 comments on commit 674086c

Please sign in to comment.