├── demo
├── __init__.py
├── asgi.py
├── wsgi.py
├── urls.py
└── settings.py
├── grad_cam
├── __init__.py
├── tests.py
├── static
│ ├── images
│ │ ├── img1.jpg
│ │ ├── img2.jpg
│ │ ├── img3.jpg
│ │ ├── img4.jpg
│ │ ├── img5.jpg
│ │ ├── img6.jpg
│ │ ├── network.png
│ │ └── team
│ │ │ ├── devi.jpg
│ │ │ ├── rama.jpeg
│ │ │ ├── abhishek.jpg
│ │ │ ├── deshraj.png
│ │ │ ├── michael.jpg
│ │ │ ├── stefan.jpg
│ │ │ └── dhruv_batra.jpg
│ └── css
│ │ └── style.css
├── templates
│ ├── form.html
│ ├── upload_image_url.html
│ ├── header_content.html
│ ├── result.html
│ ├── index_new.html
│ ├── home.html
│ ├── home_new.html
│ ├── index.html
│ ├── captioning
│ │ └── captioning.html
│ ├── base.html
│ ├── classification
│ │ └── classification.html
│ └── vqa
│ │ └── vqa.html
├── routing.py
├── consumers.py
├── urls.py
├── utils.py
├── admin.py
├── models.py
├── constants.py
├── home.html
├── sender.py
└── views.py
├── Docker
├── deploy.sh
├── run_server.sh
└── GradCAM
│ └── Dockerfile
├── .gitignore
├── .gitmodules
├── uwsgi.ini
├── requirements.txt
├── manage.py
├── uwsgi_params
├── misc
├── DeconvReLU.lua
├── GuidedBackpropReLU.lua
├── prepro_ques.py
└── utils.lua
├── models
└── download_models.sh
├── gradcam_nginx.conf
├── INSTALLATION.md
├── README.md
├── worker_captioning.py
├── worker_classify.py
├── worker_vqa.py
├── classification.lua
├── captioning.lua
└── visual_question_answering.lua
/demo/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/grad_cam/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Docker/deploy.sh:
--------------------------------------------------------------------------------
1 | python manage.py runserver 0.0.0.0:8000
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | models/
2 | !models/download_models.sh
3 | *.pyc
4 | media/
5 |
--------------------------------------------------------------------------------
/grad_cam/tests.py:
--------------------------------------------------------------------------------
1 | from django.test import TestCase
2 |
3 | # Create your tests here.
4 |
--------------------------------------------------------------------------------
/grad_cam/static/images/img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cloud-CV/Grad-CAM/HEAD/grad_cam/static/images/img1.jpg
--------------------------------------------------------------------------------
/grad_cam/static/images/img2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cloud-CV/Grad-CAM/HEAD/grad_cam/static/images/img2.jpg
--------------------------------------------------------------------------------
/grad_cam/static/images/img3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cloud-CV/Grad-CAM/HEAD/grad_cam/static/images/img3.jpg
--------------------------------------------------------------------------------
/grad_cam/static/images/img4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cloud-CV/Grad-CAM/HEAD/grad_cam/static/images/img4.jpg
--------------------------------------------------------------------------------
/grad_cam/static/images/img5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cloud-CV/Grad-CAM/HEAD/grad_cam/static/images/img5.jpg
--------------------------------------------------------------------------------
/grad_cam/static/images/img6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cloud-CV/Grad-CAM/HEAD/grad_cam/static/images/img6.jpg
--------------------------------------------------------------------------------
/Docker/run_server.sh:
--------------------------------------------------------------------------------
1 | docker build -t cloudcv/grad-cam ./GradCAM/
2 | docker run -d --name cloudcv_grad_cam GradCAM
3 |
4 |
--------------------------------------------------------------------------------
/grad_cam/static/images/network.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cloud-CV/Grad-CAM/HEAD/grad_cam/static/images/network.png
--------------------------------------------------------------------------------
/grad_cam/static/images/team/devi.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cloud-CV/Grad-CAM/HEAD/grad_cam/static/images/team/devi.jpg
--------------------------------------------------------------------------------
/grad_cam/static/images/team/rama.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cloud-CV/Grad-CAM/HEAD/grad_cam/static/images/team/rama.jpeg
--------------------------------------------------------------------------------
/grad_cam/static/images/team/abhishek.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cloud-CV/Grad-CAM/HEAD/grad_cam/static/images/team/abhishek.jpg
--------------------------------------------------------------------------------
/grad_cam/static/images/team/deshraj.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cloud-CV/Grad-CAM/HEAD/grad_cam/static/images/team/deshraj.png
--------------------------------------------------------------------------------
/grad_cam/static/images/team/michael.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cloud-CV/Grad-CAM/HEAD/grad_cam/static/images/team/michael.jpg
--------------------------------------------------------------------------------
/grad_cam/static/images/team/stefan.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cloud-CV/Grad-CAM/HEAD/grad_cam/static/images/team/stefan.jpg
--------------------------------------------------------------------------------
/grad_cam/static/images/team/dhruv_batra.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cloud-CV/Grad-CAM/HEAD/grad_cam/static/images/team/dhruv_batra.jpg
--------------------------------------------------------------------------------
/demo/asgi.py:
--------------------------------------------------------------------------------
1 | import os
2 | from channels.asgi import get_channel_layer
3 |
4 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "demo.settings")
5 |
6 | channel_layer = get_channel_layer()
7 |
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "VQA_LSTM_CNN"]
2 | path = VQA_LSTM_CNN
3 | url = https://github.com/VT-vision-lab/VQA_LSTM_CNN.git
4 | [submodule "neuraltalk2"]
5 | path = neuraltalk2
6 | url = https://github.com/karpathy/neuraltalk2.git
7 |
--------------------------------------------------------------------------------
/grad_cam/templates/form.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Drop files here or click to upload.
4 |
--------------------------------------------------------------------------------
/uwsgi.ini:
--------------------------------------------------------------------------------
1 | [uwsgi]
2 |
3 | chdir = /home/ubuntu/Projects/Grad-CAM
4 | module = demo.wsgi:application
5 | master = true
6 | processes = 10
7 | socket = 0.0.0.0:8001
8 | vaccum = true
9 | python-autoreload = 1
10 | # buffer-size=32768
11 | daemonize = /var/log/uwsgi/gradcam.log
12 |
--------------------------------------------------------------------------------
/grad_cam/static/css/style.css:
--------------------------------------------------------------------------------
1 | .brand-logo{
2 | font-weight: 300;
3 | }
4 |
5 | .demo_img{
6 | height: 300px !important;
7 | padding: 6px;
8 | }
9 |
10 | #inputImage{
11 | max-width: 100% !important;
12 | }
13 |
14 | #result{
15 | font-family: Roboto !important;
16 | }
17 |
18 |
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | numpy==1.11.1
2 | Django==1.9.8
3 | Pillow==3.3.0
4 | h5py==2.6.0
5 | nltk==3.2.1
6 | scipy==0.17.1
7 | channels==0.17.2
8 | asgi-redis==0.14.1
9 | pika==0.10.0
10 | pyyaml==3.12
11 | uwsgi==2.0.13.1
12 | websocket-client==0.37.0
13 | daphne==0.15.0
14 | requests==2.11.1
15 |
--------------------------------------------------------------------------------
/manage.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | import os
3 | import sys
4 |
5 | if __name__ == "__main__":
6 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "demo.settings")
7 |
8 | from django.core.management import execute_from_command_line
9 |
10 | execute_from_command_line(sys.argv)
11 |
--------------------------------------------------------------------------------
/grad_cam/routing.py:
--------------------------------------------------------------------------------
1 | from channels.routing import route, include
2 | from grad_cam.consumers import ws_message, ws_connect
3 |
4 | ws_routing = [
5 | route("websocket.receive", ws_message),
6 | route("websocket.connect", ws_connect),
7 | ]
8 |
9 | channel_routing = [
10 | include(ws_routing, path=r"^/chat"),
11 | ]
12 |
--------------------------------------------------------------------------------
/grad_cam/templates/upload_image_url.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |