GithubHelp home page GithubHelp logo

gcharvi31 / future-frame-prediction-and-segmentation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anishabhatnagar/future-frame-prediction-and-segmentation

1.0 0.0 0.0 70.82 MB

Deep Learning Project - Future Frame Prediction and Segmentation

Shell 0.65% Python 76.40% Jupyter Notebook 22.95%

future-frame-prediction-and-segmentation's Introduction

Future Frame Prediction and Segmentation - Final Project Deep Learning (Spring 2023)

Goal:

Problem Statement - Using the first 11 frames of a video predict the segmentation mask of the last (22nd) frame.

to create Conda Environment

the following command can be used to create the conda environment and install all necessary dependencies:

conda env create -f environment.yml
source activate projectDL

Executing Experiments

Future frame Prediction

Generative Adversarial NEtwork (GAN) with a ConvLSTM generator and a simple linear discriminator was used for future frame prediction.

To run the pipeline and train the generator network to predict the 22nd frame, the following command can be executed -

python frame_pred/src/main_hpc.py --cfg=config_hpc.json

Segmentation

Segmentation is performed using a U-Net model.

to run the pipeline and generate and train the segmentation model, the following command can be executed -

python segmentation/segmentation.py

Inference

to connect both the future frame prediction model and the Segmentation model in order to generate the masks of the 22nd frame of a video (given only 11 frames as input), the following command can be executed (after updating the path to the dataset on line 440 in infer.py) :

python infer.py

Notes

This project was part of the coursework for the Deep Learning (spring 2023) course at NYU.

Contributors:

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.