Giter VIP home page Giter VIP logo

dvd-gan's Introduction

DVD-GAN

This repo is an implementation of Efficient Video Generation on Complex Datasets

Prerequisite

Package version
python >=3.5
pytorch 1.12
numpy 1.17.2
pandas 0.25.1
tensorboardX 1.8
ffmpeg 3.4.2

Note: For more detail, please look up requirements.txt

Prepare datasets

sudo apt install ffmpeg # important package
chmod u+x scripts/data_prepare.sh
scripts/data_prepare.sh <dataset_path>

Train the model

scripts/train_model.sh <runing_mode> <dataset_path>

Dataset

Process UCF-101

  • Step 1: Download dataset
  • Step 2: Convert from avi to jpg files using: python utils/video_jpg_ucf101_hmdb51.py avi_video_directory jpg_video_directory
  • Step 3: Generate n_frames files using: python utils/n_frames_ucf101_hmdb51.py jpg_video_directory
  • Step 4: Generate annotation file in json format similar to ActivityNet using: python utils/ucf101_json.py annotation_dir_path

Note: To change the number of class:

  • Modify classInd.txt to contain the expected class(es). For example: 1 ApplyEyeMakeup 2 ApplyLipstick 3 Archery
  • Run step 4 only
  • The code in dataloader automatically skips the unsed videos.

dvd-gan's People

Contributors

harrypotterrrr avatar vominhduc 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.