Skip to content

Commit

Permalink
Minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
salvaRC committed Nov 6, 2023
1 parent 792c548 commit 266fdad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ If you use this code, please consider citing our work. Copy the bibtex from the
Salva Rühling Cachay, Bo Zhao, Hailey Joren, and Rose Yu,\
*Advances in Neural Information Processing Systems (NeurIPS)*, 2023

## Environment Setup
## | Environment Setup

We recommend installing ``dyffusion`` in a virtual environment from PyPi or Conda.
For more details about installing [PyTorch](https://pytorch.org/get-started/locally/), please refer to their official documentation.
For some compute setups you may want to install pytorch first for proper GPU support.

python3 -m pip install .[train]

## Downloading Data
## | Downloading Data

**Navier-Stokes and spring mesh:**
Follow the instructions given by the [original dataset paper](https://github.com/karlotness/nn-benchmark).
Expand All @@ -54,7 +54,7 @@ If you want to use a different directory, you need to change the
permanently edit the ``data_dir`` variable in the [src/configs/datamodule/_base_data_config.yaml](src/configs/datamodule/_base_data_config.yaml) file.
</details>

## Running experiments
## | Running experiments

Please see the [src/README.md](src/README.md) file for detailed instructions on how to run experiments, navigate the code and running with different configurations.

Expand Down Expand Up @@ -125,7 +125,7 @@ To debug the physical systems experiments, feel free to use fewer training traje
regional boxes (the default is 11 boxes) with ``python run.py 'datamodule.boxes=[88]'``.
Generally, you can also try mixed precision training with ``python run.py trainer.precision=16``.

## Citation
## | Citation

@inproceedings{cachay2023dyffusion,
title={{DYffusion:} A Dynamics-informed Diffusion Model for Spatiotemporal Forecasting},
Expand Down
2 changes: 1 addition & 1 deletion src/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def run_model(config: DictConfig) -> float:
# If not resuming training, check if run already exists (with same hyperparameters and seed)
config = cfg_utils.extras(config, if_wandb_run_already_exists="resume")

wandb_id = config.logger.wandb.get("id")
wandb_id = config.logger.wandb.get("id") if hasattr(config.logger, "wandb") else None
uses_wandb = wandb_id is not None
if uses_wandb and config.wandb_status == "resume":
# Reload model checkpoint if needed to resume training
Expand Down

0 comments on commit 266fdad

Please sign in to comment.