Project for Image and Video Processing class at NYU Tandon.
- Create a conda environment:
conda create --name ivp
- Activate the environment:
conda activate ivp
- Install the dependancies:
pip install -r torchdiffeq/requirements.txt
Steps to train the model:
- Enter in the project directory:
cd torchdiffeq
- To train a model which uses ODE solver to model the intermediate hidden states:
python conv_gru_with_mask.py
Alternatively, if running on a slurm based backend, clone the slurm
branch and use:
sbatch convtrain.sbatch
- To train a model with vanilla ConvGRU layers:
python conv_gru.py
- To validate the model, set the
--val
argument toTrue
:
python conv_gru_with_mask.py --val=True