GithubHelp home page GithubHelp logo

zzwei1 / spatiotemporal_variable_separation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeremiedona/spatiotemporal_variable_separation

0.0 1.0 0.0 62 KB

Official implementation of the paper *PDE-Driven Spatiotemporal Disentanglement*

License: Apache License 2.0

Python 100.00%

spatiotemporal_variable_separation's Introduction

PDE-Driven Spatiotemporal Disentanglement

Official implementation of the paper PDE-Driven Spatiotemporal Disentanglement (Jérémie Donà,* Jean-Yves Franceschi,* Sylvain Lamprier, Patrick Gallinari).

Requirements

All models were trained with Python 3.8.1 and PyTorch 1.4.0 using CUDA 10.1. The requirements.txt file lists Python package dependencies.

We obtained all our models thanks to mixed-precision training with Nvidia's Apex (v0.1), allowing to accelerate training on the most recent Nvidia GPU architectures. This optimization can be enabled using the command-line options.

Execution

All scripts should be executed as modules from the root of this folder. For example, the training script can be launched with:

python -m var_sep.main

Datasets

Preprocessing scripts are located in the var_sep/preprocessing folder for the WaveEq, WaveEq-100 and Moving MNIST datasets:

  • var_sep.preprocessing.mnist.make_test_set creates the Moving MNIST testing set;
  • var_sep.preprocessing.chairs.gen_chairs creates, from the original dataset to download at https://www.di.ens.fr/willow/research/seeing3Dchairs/data/rendered_chairs.tar, the 64x64 images used by the model;
  • var_sep.preprocessing.wave.gen_wave generates the WaveEq dataset;
  • var_sep.preprocessing.wave.gen_pixels chooses pixels to draw from the WaxeEq dataset to create the WaveEq-100 dataset.

Regarding SST, we refer the reader to the article in which it was introduced (https://openreview.net/forum?id=By4HsfWAZ) and its authors, as we do not own the preprocessing script to this date.

Training

Please refer to the help message of main.py:

python -m var_sep.main --help

which lists options and hyperparameters to train our model.

Testing

Evaluation scripts on testing sets are located in the var_sep/test folder.

  • var_sep.test.mnist.test evaluates the prediction PSNR and SSIM of the model on Moving MNIST;
  • var_sep.test.mnist.test_disentanglement evaluates the disentanglement PSNR and SSIM of the model by swapping contents and digits on Moving MNIST;
  • var_sep.test.chairs.test_disentanglement evaluates the disentanglement PSNR and SSIM of the model by swapping contents and chairs on 3D Warehouse Chairs;
  • var_sep.sst.wave.test computes the prediction MSE of the model after 6 and 10 prediction steps on SST;
  • var_sep.test.wave.test computes the prediction MSE of the model after 40 prediction steps on WaveEq and WaveEq-100; Please refer to the corresponding help messages for further information.

spatiotemporal_variable_separation's People

Contributors

white-link avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.