Code Monkey home page Code Monkey logo

viax_liao's Introduction

General Action Recognition Framework for Viax

This repository is the framework for Action Recognition for Viax Project.

Implementation

This framework is in PyTorch

Normalization

The inputs are substrated by mean RGB = [ 124, 117, 104 ], and then multiplied by 0.0167.

Usage

Fine-tune with pre-trained model using the new network:

python train_ucf101.py --network CHANGE_1 (or CHANGE_2)

or

python train_hmdb51.py --network CHANGE_1 (or CHANGE_2)

Evaluate the trained model:

cd test
# the default setting is to test trained model on ucf-101 (split1)
python evaluate_video.py --network CHANGE_1

Other Resources

ImageNet-1k Trainig/Validation List:

ImageNet-1k category name mapping table:

Kinetics Dataset:

UCF-101 Dataset:

HMDB51 Dataset:

额外中文说明

  • 若没有显卡进行训练,请使用CPU训练。目前网络已经修改为采用CPU训练,若有Bug请记录并及时通过邮件和班主任反馈给我。若能使用GPU也请尽早反馈。
  • 首先保证所有的对文件的链接改为文件夹,将视频文件(每个类的文件应在不同文件夹)都放入对应的数据库/raw/data文件夹内。
  • 如果仍然遇到问题,可以尝试重装PyTorch。

如何修改网络框架

    1. 保留原有骨架网络,新增一个网络py文件(比如:mfnet_change.py)注意文件名不要有空格,建议能体现修改的内容。
    1. 建议修改网络的class名(见mfnet_base.py第65行)(改称比如 class MFNET_CHANGE(nn.Module):)。这个改动要同时体现在__init__函数的super内和main函数中。
    1. 测试采用python 新文件名即可,main函数大致和mfnet_base.py的main函数一致,如果修改了网络名记得在main函数内做相应的修改。(如果碰到xxx is not defined很大可能就是你网络名没有修改)
    1. 在symbol_builder.py中新加一个from 新文件 import 新网络class,并参考13,14行做相应的增加(可以直接先复制黏贴然后修改网络名字就好)
    1. 在train_hmdb51.py中修改第38行 --network的参数为你修改过的新网络名

数据库下载链接如下(可在**大陆使用)

若有其他问题请及时通过邮件或者班主任与我联系

viax_liao's People

Contributors

lcxi avatar xuyu0010 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.