├── Action_detection.ipynb ├── README.md ├── images ├── 1.jpg ├── 2.jpg ├── 3.jpg ├── 4.jpg ├── 5.jpg └── action_net.jpg └── model_class.json /README.md: -------------------------------------------------------------------------------- 1 | # Action-Detection(Action-Net) 2 | Action-Net is a dataset containing images of 16 different human actions. 3 |

4 | 5 |
6 | Action-Net is a dataset containing images of human actions , collected in order to ensure that machine learning systems can be trained 7 | to understand human actions, gestures and activities. This is part of DeepQuest AI's to train machine learning systems to 8 | perceive, understand and act accordingly in solving problems in any environment they are deployed.

9 | 10 | This is the first release of the Action-Net dataset. It contains 19,200 images that span cover 16 classes. The classes 11 | included in this release are:

12 | 13 | - Calling
14 | - Clapping
15 | - Cycling
16 | - Dancing
17 | - Drinking
18 | - Eating
19 | - Fighting
20 | - Hugging
21 | - Kissing
22 | - Laughing
23 | - Listening to Music
24 | - Running
25 | - Sitting
26 | - Sleeping
27 | - Texting
28 | - Using Laptop
29 | 30 | 31 | There are 1,200 images for each category, with 1000 images for trainings and 200 images for testing . We are working on adding more 32 | categories in the future and will continue to improve the dataset. 33 |


34 | 35 | >>> DOWNLOAD, TRAINING AND PREDICTION:

36 | The Action-Net dataset is provided for download in the release section of this repository. 37 | You can download the dataset via the link below.

https://github.com/OlafenwaMoses/Action-Net/releases/download/v1/action_net_v1.zip

38 | 39 | We have also provided a python codebase to download the images, train ResNet50 on the images 40 | and perform prediction using a pretrained model (also using ResNet50) provided in the release section of this repository. 41 | The python codebase is contained in the action_net.py file and the model class labels for prediction is also provided the 42 | model_class.json. The pretrained ResNet50 model is available for download via the link below.

43 | https://github.com/OlafenwaMoses/Action-Net/releases/download/v1/action_net_ex-060_acc-0.745313.h5
44 |
45 | This pre-trained model was trained for **60 epochs** only, but it achieved over **74%** accuracy on 3200 test images. You can see the prediction results on new images that were not part of the dataset in the **Prediction Results** section below. More experiments will enhance the accuracy of the model. 46 |
47 | Running the experiment or prediction requires that you have **Tensorflow**, and **Keras**, **OpenCV** and **ImageAI** installed. You can install this dependencies via the commands below. 48 | 49 |
- Tensorflow 1.4.0 (and later versions) Install or install via pip
 pip3 install --upgrade tensorflow 
50 | 51 | - OpenCV Install or install via pip
 pip3 install opencv-python 
52 | 53 | - Keras 2.x Install or install via pip
 pip3 install keras 
54 | 55 | - ImageAI 2.0.3 56 |
pip3 install imageai 



57 | 58 | 59 | 60 | 61 | 62 |
 63 | eating  :  100.0
 64 | drinking  :  3.92037860508232e-09
 65 | using-laptop  :  6.944534465709584e-11
 66 | calling  :  5.7910951424891555e-12
 67 | 
68 | 69 |
70 |
71 | 72 |
 73 | eating  :  99.44907426834106
 74 | drinking  :  0.5508399568498135
 75 | using-phone  :  5.766927415606915e-05
 76 | sitting  :  1.1222620344142342e-05
 77 | 
78 | 79 |
80 |
81 | 82 | 83 |
 84 | fighting  :  99.97442364692688
 85 | running  :  0.01658390392549336
 86 | dancing  :  0.008970857743406668
 87 | sitting  :  7.210289965087213e-06
 88 | 
89 | 90 |
91 |
92 | 93 | 94 |
 95 | laughing  :  99.99998807907104
 96 | clapping  :  1.3144966715117334e-05
 97 | calling  :  4.0294068526236515e-06
 98 | eating  :  4.981405066217803e-07
 99 | 
100 | 101 | 102 |
103 |
104 | 105 | 106 |
107 | running  :  99.99852180480957
108 | calling  :  0.0009251662959286477
109 | listening-to-music  :  0.0002909338491008384
110 | cycling  :  0.00024121977730828803
111 | 
112 | 113 | 114 |
115 | -------------------------------------------------------------------------------- /images/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aasu14/Action-Detection/25282f8b284f97189dd0d3bb48e2b022099b6738/images/1.jpg -------------------------------------------------------------------------------- /images/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aasu14/Action-Detection/25282f8b284f97189dd0d3bb48e2b022099b6738/images/2.jpg -------------------------------------------------------------------------------- /images/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aasu14/Action-Detection/25282f8b284f97189dd0d3bb48e2b022099b6738/images/3.jpg -------------------------------------------------------------------------------- /images/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aasu14/Action-Detection/25282f8b284f97189dd0d3bb48e2b022099b6738/images/4.jpg -------------------------------------------------------------------------------- /images/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aasu14/Action-Detection/25282f8b284f97189dd0d3bb48e2b022099b6738/images/5.jpg -------------------------------------------------------------------------------- /images/action_net.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aasu14/Action-Detection/25282f8b284f97189dd0d3bb48e2b022099b6738/images/action_net.jpg -------------------------------------------------------------------------------- /model_class.json: -------------------------------------------------------------------------------- 1 | { 2 | "0" : "calling", 3 | "1" : "clapping", 4 | "2" : "cycling", 5 | "3" : "dancing", 6 | "4" : "drinking", 7 | "5" : "eating", 8 | "6" : "fighting", 9 | "7" : "hugging", 10 | "8" : "kissing", 11 | "9" : "laughing", 12 | "10" : "listening-to-music", 13 | "11" : "running", 14 | "12" : "sitting", 15 | "13" : "sleeping", 16 | "14" : "using-laptop", 17 | "15" : "using-phone" 18 | } --------------------------------------------------------------------------------