Code Monkey home page Code Monkey logo

adaptive-highlight's Introduction

Adaptive video highlight detection

Prerequistes

  • Python 3.6.9
  • PyTorch 1.2.0

Dataset and setup

  • Download and process the PHD-GIFs dataset.
  • See config/config.py for different experiment settings and parameters.
  • Fix the paths in config/config.py. We store the list of train/val/test users and their video and histories path in .json files.
  • For each user, we store the video features in a .csv file and the user's history features in a .json file. For each element in the user's history, we consider the features of the segments that are indicated as highlights in the ground truth. See dataloader/make_dataloader_final_dumps.py for details and update the paths for .csv and .json files for users.
  • Note that this codebase is a reimplementation. It is very likely that I may have made some mistakes during the process. However, I intend to fix them over time.
  • Below I provide example training and testing commands.

Training

To train, run the following command:

python train.py --hist_net attn

Testing

To test, run the following command:

python test.py --hist -m ./checkpoints/adain-attn/checkpoint.pt --hist_net attn

adaptive-highlight's People

Contributors

mrochan avatar

Watchers

James Cloos avatar  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.