PUBLIC SAFETY , and AI for good is one of my goals when i strated learning ML in 2014 , my country (iraq) face a lot of problems regarding security and public safety , i did published a paper for violance detacton in videos a year ago during my master study and figured out that many other developer and researcher have used my paper and code the old code was in tensorflow i decided to build one in pytorch , i do find many developer have faced problem with build such video based model in pytorch , if we do search for (timedistributed in pytorch) you can get alot of urls which many developers asked for implmention that can warp a 4d tensor into normal Conv2d and all awnsers either not work or not give a councrate example to others so thy can use it here is some of these url ( , , , ,

also using lstm within Sequential pytorch model found to be rare used case and there is some developers asked for help in this

What it does

the final model can be used as api for violance detection in videos while the tutorial is pointing out and explain the main blocks for build such model which is time warper and video dataloader

How I built it

using pytorch to build a video action recogantion model using a pre-trained Conv2d model with LSTM

Challenges I ran into

it is rare that you find a problem that is general and yet no concrete solution or code for it in the internet so these let me do alot of search and reading in the pytorch refreance and also keras repo to mimic it way of doing this ( keras time distrbution warpper )

Accomplishments that I'm proud of

wrtting my first tutorial , and build some custom code not writing before in stackoverflow or main tool fourm and helping other

What I learned

pytorch is very open to do any customization and that can help me do advance research topics in it instead of using tensorflow

What's next for violance Detaction in videos using CNN + LSTM

build larger one with more classes not only give if there s a violance or not also recognize the violance action type trying different algorithms

Built With

Share this project: