WaveSFNet: A Wavelet-Based Codec and Spatial--Frequency Dual-Domain Gating Network for Spatiotemporal Prediction
This repository directly inherits the codebase and dependencies of OpenSTL. We recommend first making sure you can successfully run OpenSTL.
conda env create -f environment.yml
conda activate OpenSTL
pip install -r requirements.txt
python setup.py developData preparation scripts are provided under:
tools/prepare_data/
Please ensure that processed datasets are placed under:
yourprojectname/data/
(for example, yourprojectname/data/mmnist/ for Moving MNIST).
├── data/moving_mnist
├── configs/
│ └── mmnist/WaveSF.py # Moving MNIST config
├── openstl/
│ ├── modules/
│ │ ├── wavesf_modules.py
│ └── models/
│ └── WaveSFNet.py
├── tools/
│ ├── train.py
│ └── test.py
└── README.md
We provide an independent configuration for WaveSFNet, for example:
configs/mmnist/WaveSF.py
From the repository root, run:
python tools/train.py -d mmnist -c configs/mmnist/WaveSF.py --ex_name mmnist_wavesfnet --testIf multi-GPU training is needed, you can write your own launcher script as in OpenSTL, still using tools/train.py as the entry point.
From the repository root, run:
python tools/test.py -d mmnist -c configs/mmnist/WaveSF.py --ex_name mmnist_wavesfnet --testThis project is built on top of the OpenSTL framework in terms of code structure, training pipeline, and data preparation. We sincerely thank the authors and contributors of OpenSTL for their great work.