Giter Club home page Giter Club logo

lsct's Introduction

LSCT

action recognition This repository implements action recognition network LSCT.

Requirements Python3 PyTorch 1.0 or higher scikit-learn tqdm

Data Preparation:

We need to first extract videos into frames for fast reading. Please refer to TSN repo for the detailed guide of data pre-processing.

Basically, the processing of video data can be summarized into 3 steps:

Extract frames from videos (refer to tools/vid2img_sthv2.py for Something-Something-V2 example) Generate annotations needed for dataloader (refer to tools/gen_label_sthv1.py for Something-Something-V1 example, and tools/gen_label_sthv2.py for Something-Something-V2 example) Add the information to ops/dataset_configs.py

Training: python main.py something RGB
--arch resnet50 --num_segments 8
--gd 20 --lr 0.01 --lr_steps 20 40 45 --epochs 60
--batch-size 48 -j 16 --dropout 0.5 --consensus_type=avg --eval-freq=1
--shift --shift_div=8 --shift_place=blockres --npb

testing: python test_models.py something
--weights=checkpoint/TSM_something_RGB_resnet50_shift8_blockres_avg_segment8_e45.pth
--test_segments=8 --batch_size=32 -j 24 --test_crops=1

lsct's People

Contributors

lishukai428 avatar

Watchers

 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.