Giter Club home page Giter Club logo

mimo-vp's Introduction

MIMO is All You Need

This is a Pytorch implementation of MIMO is All You Need , a Transformer-based architexture for video prediction as described in the following paper:

MIMO Is All You Need : A Strong Multi-In-Multi-Out Baseline for Video Prediction, by Shuliang Ning, Mengcheng Lan, Yanran Li, Chaofeng Chen, Qian Chen, Xunlai Chen, Xiaoguang Han and Shuguang Cui.

Install

pip install -r requirment.txt

Datasets

We conduct experiments on four video datasets: MNIST (passwd:lnnj), Human3.6M, Weather, and KITTI (passwd:bfar).

For video format datasets, we extract frames from original video clips.

Training

Use the train.py scipt to train the model. To train the default model on Moving MNIST dataset, you need to download the MNIST dataset, and change data directory in --root, then just run:

python train.py

To train on your own dataset, just change the dataloader.

The check point will be saved in --save_dir and the generated frames will be saved in the --gen_frm_dir folder.

Pretrain models

The pretrain model for MNIST is Here (passwd:chpo)

Prediction samples

The comparison between MIMO-VP and other two methods.

30 frames are predicted given the last 10 frames.

Citation

To be release.

mimo-vp's People

Contributors

ningshuliang avatar

Stargazers

刘子健_LiuZijian avatar  avatar  avatar Chaofeng Chen avatar  avatar  avatar  avatar a flying pig avatar Raevskiy Rudolf avatar  avatar  avatar Changwoo Lee avatar  avatar  avatar  avatar  avatar

Watchers

Kostas Georgiou avatar  avatar  avatar

mimo-vp's Issues

Request for Supplementary Materia

Could you supply more detailed information about the model parameters for weather dataset? It looks like it should be in 'supplementary materia', but I can't find any detail of 'supplementary materia' in your article or this repository.

About the patch size in your code?

I have noticed that your expansion of pos_emb in class Transformer is different with the shape of moving mnist ? Should it be expanded to (src.size(0), 20, self.d_model, 16, 16) since your patch_size is 2 instead of 4?

Hyperparameters for more datasets

Thanks for your awesome MIMO-VP!

I am trying to train MIMO on datasets besides Moving MNIST, so could you please help me specify the hyperparameters for experiments on the Human3.6M, weather and KITTI datasets?

Thanks for your help!

Question about Position Embedding

May I ask why you deleted all the parts related to position embedding in the previous code submission? Based on my observation, the current version of the code is unable to change the parameters n_frames_input and n_frames_output. Is this a separate modification made for movingmnist? Would you please open source the code that is compatible with multiple datasets and multiple total length together?

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.