sudo apt-get install -y git python-pip python-dev
sudo apt-get install -y python-dev
sudo apt-get install -y autoconf automake libtool curl make g++ unzip
sudo apt-get install -y libgflags-dev libgoogle-glog-dev liblmdb-dev
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
source ~/.bashrc
git clone https://github.com/hughperkins/pytorch.git
cd pytorch
source ~/torch/install/bin/torch-activate
./build.sh
sudo apt-get install -y redis-server rabbitmq-server
sudo rabbitmq-plugins enable rabbitmq_management
sudo service rabbitmq-server restart
sudo service redis-server restart
luarocks install loadcaffe
The below two dependencies are only required if you are going to use GPU
luarocks install cudnn
luarocks install cunn
Note: CUDA and cuDNN is only required if you are going to use GPU
Download and install CUDA and cuDNN from nvidia website
git clone https://github.com/Cloud-CV/Grad-CAM.git
cd Grad-CAM
git submodule init && git submodule update
sh models/download_models.sh
pip install -r requirements.txt
python -m nltk.downloader all
Open 4 different terminal sessions and run the following commands:
python worker_vqa.py
python worker_classify.py
python worker_captioning.py
python manage.py runserver
You are all set now. Visit http://127.0.0.1:8000 and you will have your demo running successfully.