GithubHelp home page GithubHelp logo

cxxpython9 / video_reloc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fengyang0317/video_reloc

0.0 0.0 0.0 444 KB

Code for "Video Re-localization" in ECCV 2018

License: MIT License

Python 100.00%

video_reloc's Introduction

Video Re-localization

by Yang Feng, Lin Ma, Wei Liu, Tong Zhang, Jiebo Luo

Introduction

Video Re-localization aims to accurately localize a segment in a reference video such that the segment semantically corresponds to a query video. For more details, please refer to our paper.

alt text

Citation

@InProceedings{feng2018video,
  author = {Feng, Yang and Ma, Lin and Liu, Wei and Zhang, Tong and Luo, 
  Jiebo},
  title = {Video Re-localization},
  booktitle = {ECCV},
  year = {2018}
}

Requirements

sudo apt install python-opencv
pip install tf-nightly-gpu==1.11.0.dev20180821

Dataset

  1. Download the ActivityNet features at link. You will get activitynet_v1-3.part-00 to activitynet_v1-3.part-05.

  2. Merge and unzip the files. You'll get sub_activitynet_v1-3.c3d.hdf5.

    cat activitynet_v1-3.part-0* > temp.zip
    unzip temp.zip
    
  3. Get the code and split the features.

    git clone https://github.com/fengyang0317/video_reloc.git
    cd video_reloc
    ln -s /path/to/sub_activitynet_v1-3.c3d.hdf5 data/
    wget "http://ec2-52-11-11-89.us-west-2.compute.amazonaws.com/files/\
    activity_net.v1-3.min.json" -P data/
    python split_feat.py
    
  4. [Optional] Download the all the videos into data/videos and get the number of frames in each video.

    python get_frame_num.py
    
  5. Generate the dataset json.

    python create_dataset.py
    

Model

  1. Train the model.

    python match.py --data_dir data
    
  2. Eval the model. The results may be slightly different from the values reported in the paper.

    python eval.py --data_dir data --ckpt_path saving/model.ckpt-(best val ckpt)
    

video_reloc's People

Contributors

fengyang0317 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.