{ "info": { "author": "Grigorios Kalliatakis", "author_email": "gkallia@essex.ac.uk", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6" ], "description": "

\n \n\n[![GitHub license](https://img.shields.io/github/license/GKalliatakis/DisplaceNet.svg)](https://github.com/GKalliatakis/DisplaceNet/blob/master/LICENSE)\n![GitHub issues](https://img.shields.io/github/issues/GKalliatakis/DisplaceNet.svg)\n![GitHub release](https://img.shields.io/github/release/GKalliatakis/DisplaceNet.svg)\n[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=DisplaceNet:%20Recognising%20Displaced%20People%20from%20Images%20by%20Exploiting%20Dominance%20Level&url=https://github.com/GKalliatakis/DisplaceNet&hashtags=ML,DeepLearning,CNNs,HumanRights,HumanRightsViolations,ComputerVisionForHumanRights)\n

\n\n\n--------------------------------------------------------------------------------\n### Introduction\n

To reduce the amount of manual labour required for human-rights-related image analysis, \nwe introduce DisplaceNet, a novel model which infers potential displaced people from images \nby integrating the dominance level of the situation and a CNN classifier into one framework.

\n\n

\n \n

\n\n

\n Grigorios Kalliatakis    \n Shoaib Ehsan    \n Maria Fasli    \n Klaus McDonald-Maier    \n

\n\n

\nTo appear in 1st CVPR Workshop on
Computer Vision for Global Challenges (CV4GC)    \n
\n
\n[arXiv preprint]\n    \n[poster coming soon...]\n

\n\n\n\n### Dependencies\n* Python 2.7+\n* Keras 2.1.5+\n* TensorFlow 1.6.0+\n\n### Usage\n\nClone the repository:\n\n $ git clone https://github.com/GKalliatakis/DisplaceNet.git\n\n\n#### Inference with pretrained models\nTo make a single image inference using DisplaceNet, run the script below. See [run_DisplaceNet.py](https://github.com/GKalliatakis/DisplaceNet/blob/master/run_DisplaceNet.py) for a list of selectable parameters.\n\n ```bash\n $ python run_DisplaceNet.py --img_path test_image.jpg \\\n --hra_model_backend_name VGG16 \\\n --emotic_model_backend_name VGG16 \\\n --nb_of_conv_layers_to_fine_tune 1\n ``` \n\n#### Inference results DisplaceNet vs vanilla CNNs\nMake a single image inference using DisplaceNet and display the results against vanilla CNNs (as shown in the paper). \nFor example to reproduce image below, run the following script.\nSee [displacenet_vs_vanilla.py](https://github.com/GKalliatakis/DisplaceNet/blob/master/displacenet_vs_vanilla.py) for a list of selectable parameters.\n\n ```bash\n $ python displacenet_vs_vanilla.py --img_path test_image.jpg \\\n --hra_model_backend_name VGG16 \\\n --emotic_model_backend_name VGG16 \\\n --nb_of_conv_layers_to_fine_tune 1\n ``` \n\n

\n \n

\n\n\n#### Training DisplaceNet's branches from scratch\n\n1. To train _displaced people_ branch on the HRA subset, run the training script below. See [train_emotic_unified.py](https://github.com/GKalliatakis/DisplaceNet/blob/master/train_emotic_unified.py) for a list of selectable parameters.\n\n ```bash\n $ python train_hra_2class_unified.py --pre_trained_model vgg16 \\\n \t --nb_of_conv_layers_to_fine_tune 1 \\\n \t --nb_of_epochs 50\n ```\n1. To train _human-centric_ branch on the EMOTIC subset, run the training script below. See [train_emotic_unified.py](https://github.com/GKalliatakis/DisplaceNet/blob/master/train_emotic_unified.py) for a list of selectable parameters.\n\n ```bash\n $ python train_emotic_unified.py --body_backbone_CNN VGG16 \\\n --image_backbone_CNN VGG16_Places365 \\\n --modelCheckpoint_quantity val_loss \\\n --earlyStopping_quantity val_loss \\\n --nb_of_epochs 100 \\\n ``` \n _Please note that for training the human-centric branch yourself, the HDF5 file containing the preprocessed images and their respective annotations is required (10.4GB)._\n\n### Data of DisplaceNet\n\nHere we release the data for training DisplaceNet to the public.\n\n[Human Rights Archive](https://github.com/GKalliatakis/Human-Rights-Archive-CNNs) is the core set of our dataset, which has been used to train DisplaceNet.\n\nThe constructed dataset contains 609 images of displaced people and the same number of non displaced\npeople counterparts for training, as well as 100 images collected from the web for testing and validation.\n\n* [Train images](https://github.com/GKalliatakis/DisplaceNet/releases/download/v1.0/train.zip)\n* [Validation images](https://github.com/GKalliatakis/DisplaceNet/releases/download/v1.0/val.zip)\n* [Test images](https://github.com/GKalliatakis/DisplaceNet/releases/download/v1.0/test.zip)\n\n\n---\n\n### Results (click on images to enlarge)\n

\n \n \n \n \n \n \n

\n\n\n### Performance of AbuseNet\n

The performance of displaced people recognition using DisplaceNet is listed below. \nAs comparison, we list the performance of various vanilla CNNs trained with various network backbones, \nfor recognising displaced people. We report comparisons in both accuracy and coverage-the proportion of a data set for which a classifier is able to produce a prediction- metrics

\n\n

\n \n

\n\n---\n\n### Citing DisplaceNet\nIf you use our code in your research or wish to refer to the baseline results, please use the following BibTeX entry:\n\n @article{kalliatakis2019displacenet,\n title={DisplaceNet: Recognising Displaced People from Images by Exploiting Dominance Level},\n author={Kalliatakis, Grigorios and Ehsan, Shoaib and Fasli, Maria and McDonald-Maier, Klaus D},\n journal={arXiv preprint arXiv:1905.02025},\n year={2019}\n }\n\n

\n :octocat:
\n Repo will be updated with more details soon!
\n Make sure you have starred and forked this repository before moving on!\n\n

\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/GKalliatakis/DisplaceNet/archive/master.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/GKalliatakis/DisplaceNet", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "DisplaceNet", "package_url": "https://pypi.org/project/DisplaceNet/", "platform": "", "project_url": "https://pypi.org/project/DisplaceNet/", "project_urls": { "Download": "https://github.com/GKalliatakis/DisplaceNet/archive/master.zip", "Homepage": "https://github.com/GKalliatakis/DisplaceNet" }, "release_url": "https://pypi.org/project/DisplaceNet/0.1/", "requires_dist": null, "requires_python": "", "summary": "Recognising Displaced People from Images by Exploiting Dominance Level", "version": "0.1" }, "last_serial": 5256715, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "bbdc6a199065a0f3f4e12e310f9c8656", "sha256": "2a547c9d35604c3d27dd60788344c8415505e206a9cf33e042dec0dbf986ce3e" }, "downloads": -1, "filename": "DisplaceNet-0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "bbdc6a199065a0f3f4e12e310f9c8656", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 315024, "upload_time": "2019-05-11T17:09:06", "url": "https://files.pythonhosted.org/packages/69/93/e040ab9cb7442b57c356d6c1861b3f442e645af017a40201dff20edef69a/DisplaceNet-0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8aaa3b08ae073fd2c753c6a036643230", "sha256": "47ead577ec788663dc9644592d3fbb2ccc1306310c9334d2b6d7d87a80251def" }, "downloads": -1, "filename": "DisplaceNet-0.1.tar.gz", "has_sig": false, "md5_digest": "8aaa3b08ae073fd2c753c6a036643230", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 211605, "upload_time": "2019-05-11T17:09:08", "url": "https://files.pythonhosted.org/packages/4a/00/99bde5982513fb96eb3cf4c36fc478bcc70aff3de996ed39d098a23ecc9c/DisplaceNet-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bbdc6a199065a0f3f4e12e310f9c8656", "sha256": "2a547c9d35604c3d27dd60788344c8415505e206a9cf33e042dec0dbf986ce3e" }, "downloads": -1, "filename": "DisplaceNet-0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "bbdc6a199065a0f3f4e12e310f9c8656", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 315024, "upload_time": "2019-05-11T17:09:06", "url": "https://files.pythonhosted.org/packages/69/93/e040ab9cb7442b57c356d6c1861b3f442e645af017a40201dff20edef69a/DisplaceNet-0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8aaa3b08ae073fd2c753c6a036643230", "sha256": "47ead577ec788663dc9644592d3fbb2ccc1306310c9334d2b6d7d87a80251def" }, "downloads": -1, "filename": "DisplaceNet-0.1.tar.gz", "has_sig": false, "md5_digest": "8aaa3b08ae073fd2c753c6a036643230", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 211605, "upload_time": "2019-05-11T17:09:08", "url": "https://files.pythonhosted.org/packages/4a/00/99bde5982513fb96eb3cf4c36fc478bcc70aff3de996ed39d098a23ecc9c/DisplaceNet-0.1.tar.gz" } ] }