GithubHelp home page GithubHelp logo

garofv's Introduction

GarOFV

This code is for our paper "Continuous Perception Garment ClassificationBased on Optical Flow Variation".

install

git clone https://github.com/hhhhhli/GarOFV.git
cd GarOFV
pip install -r requirements.txt  # install

preparation

The dataset can be downloaded from the link below:

https://github.com/LiDuanAtGlasgow/GarNet

The image-based classification model can be acquired according to GarNet.Which can be replaced by other image_based classification methods.

If you need to change the dataset and classification model paths, Modify the video_classify_module.py file.

354    file_path='./Database/'
355    model_path='./Models/'

Run the code

You can use command line arguments

    --bandwidth     
    --use_flow
    --use_early_stop

to modify bandwidth, whether to use our optical-flow based method and whether to use early-stop model.

For example, to run in continuous perception model with our method, and set the bandwidth is 95, can use the following bash command:

python -B video_classify_module.py --bandwidth 95 --use_flow True --use_early_stop False

To run in early-stop model with our method, and set the bandwidth is 55, can use the following bash command:

python -B video_classify_module.py --bandwidth 55 --use_flow True --use_early_stop True

Can run the run.sh file to obtain the run result in different modes and bandwidth

bash run.sh

The results are saved in the Results directory, and run the line_chart.py file can get the visualization results.

python line_chart.py

result

References and acknowledgement

Our code refers to Li Duan's GarNet algorithm.

https://github.com/LiDuanAtGlasgow/GarNet

garofv's People

Contributors

hhhhhli avatar sujuyu 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.