Skip to content

Commit

Permalink
Merge pull request #40 from henryaddison/remove-old-unet-approach
Browse files Browse the repository at this point in the history
Remove deterministic package
  • Loading branch information
henryaddison authored Oct 22, 2024
2 parents 4a62319 + 4df883a commit c262366
Show file tree
Hide file tree
Showing 78 changed files with 215 additions and 1,030 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ repos:
hooks:
- id: black
language_version: python3.9
exclude: ^src/ml_downscaling_emulator/score_sde_pytorch/
exclude: ^src/ml_downscaling_emulator/(run_lib.py|sde_lib.py|likelihood.py|sampling.py|losses.py|models|op|configs)
- repo: https://github.com/pycqa/flake8
rev: '6.0.0' # pick a git hash / tag to point to
hooks:
- id: flake8
exclude: ^src/ml_downscaling_emulator/score_sde_pytorch/
exclude: ^src/ml_downscaling_emulator/(run_lib.py|sde_lib.py|likelihood.py|sampling.py|losses.py|models|op|configs)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Recommended to run with a sample of the dataset.
Train models through `bin/main.py`, e.g. to train the model used in the paper use

```sh
python bin/main.py --config src/ml_downscaling_emulator/score_sde_pytorch/configs/subvpsde/ukcp_local_pr_12em_cncsnpp_continuous.py --workdir ${DERIVED_DATA}/path/to/models/paper-12em --mode train
python bin/main.py --config src/ml_downscaling_emulator/configs/subvpsde/ukcp_local_pr_12em_cncsnpp_continuous.py --workdir ${DERIVED_DATA}/path/to/models/paper-12em --mode train
```

```sh
Expand Down
2 changes: 1 addition & 1 deletion bin/bp/queue-training
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def train_cmd(sde, workdir, config, config_overrides=list):
train_basecmd = ["python", f"bin/main.py"]

train_opts = {
"--config": f"src/ml_downscaling_emulator/score_sde_pytorch/configs/{sde}/{config}.py",
"--config": f"src/ml_downscaling_emulator/configs/{sde}/{config}.py",
"--workdir": workdir,
"--mode": "train",
}
Expand Down
99 changes: 0 additions & 99 deletions bin/deterministic/bp/queue-sampling

This file was deleted.

75 changes: 0 additions & 75 deletions bin/deterministic/bp/queue-training

This file was deleted.

57 changes: 0 additions & 57 deletions bin/deterministic/bp/train-sample

This file was deleted.

43 changes: 0 additions & 43 deletions bin/deterministic/main.py

This file was deleted.

63 changes: 0 additions & 63 deletions bin/deterministic/model-size

This file was deleted.

2 changes: 1 addition & 1 deletion bin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

"""Training"""

import ml_downscaling_emulator.score_sde_pytorch.run_lib as run_lib
import ml_downscaling_emulator.run_lib as run_lib
from absl import app
from absl import flags
from ml_collections.config_flags import config_flags
Expand Down
Loading

0 comments on commit c262366

Please sign in to comment.