Giter VIP home page Giter VIP logo

protest-detection-violence-estimation's Introduction

Protest Activity Detection and Perceived Violence Estimation from Social Media Images

Implementation of the model used in the paper Protest Activity Detection and Perceived Violence Estimation from Social Media Images (ACM Multimedia 2017) [arxiv] by Donghyeon Won, Zachary C. Steinert-Threlkeld, Jungseock Joo.

Requirements

Pytorch
NumPy
pandas
scikit-learn

Usage

Training

python train.py --data_dir UCLA-protest/ --batch_size 32 --lr 0.002 --print_freq 100 --epochs 100 --cuda

Evaluation

python pred.py --img_dir path/to/some/image/directory/ --output_csvpath result.csv --model model_best.pth.tar --cuda

UCLA Protest Image Dataset

You will need to download our UCLA Protest Image Dataset to train the model. Please e-mail me if you want to download our dataset!

Dataset Statistics

# of images: 40,764
# of protest images: 11,659

Protest & Visual Attributes
Fields Protest Sign Photo Fire Police Children Group>20 Group>100 Flag Night Shouting
# of Images 11,659 9,669 428 667 792 347 8,510 2,939 970 987 548
Positive Rate 0.286 0.829 0.037 0.057 0.068 0.030 0.730 0.252 0.083 0.085 0.047
Violence
Mean Median STD
0.365 0.352 0.144

Model

Architecture

We fine-tuned ImageNet pretrained ResNet50 to our data. You can download the model I trained from this Dropbox link.

Performance

Protest Sign Photo
Fire Police Children
Group>20 Group>100 Flag
Night Shouting Violence

protest-detection-violence-estimation's People

Contributors

wondonghyeon avatar

Watchers

 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.