Computer Vision and Deep Learning based Disaster Impact Assessment from Satellite Imagery
sudo apt install mysql-server
sudo service mysql start
sudo apt install redis-server
sudo service redis start
Run npm install to install all the node packages listed in package.json. Please note the installation of gdal package can fail with recent versions of node. Use node v10.16 LTS.
Create a folder ./src/model to store the neural network models. Download both segmentor and classifier into the folder and configure the file config.py to specify the model paths.
Configure the .env file to specify the following information:
a. Database credentials
b. Path to Python Interpreter
The selected Python Interpreter should have the following libraries associated with it:
a. numpy
b. pytorch (pytorch-cpu if no GPU)
c. rasterio
d. gdal2tiles
It is suggested to use conda to manage the packages and provide the path to the interpreter inside the conda environment.
Run npx sequelize db:migrate followed by npx sequelize db:seed:all to migrate the db and seed the admin user information. (You might need to use sequelize-cli in some installation). The admin credentials are:
username: admin
password: disasteradmin
The impact tifs are saved in the folder ./analysisOutput/eventid/sectionid and the tiles are saved in the folder public/tiles/eventid/sectionid/{pre} or {post} or {impact}
Run the program. Visit http://localhost:3000 and add event, section and upload images. Then Assess the Impact to generate the result. Be patient as it will take some time if you're not on GPU.
docker-compose build
docker-compose up
http://localhost:3000
Remember the application is running on port 3000 of docker container and it is mapped to port 3000 of host. (hostPORT:dockercontainerPORT)
Content type
Image
Digest
Size
1.3 GB
Last updated
about 7 years ago
docker pull anisbhsl/disaster-assessment-web-app