/Social-Flood

Website created to demonstrate my MSc thesis, showing all the used images with geolocation.

Primary LanguagePython

Social Flood

Repository that contains the code for a server that uses mapbox to display, in a global map, all the geo-referenced images used in my MSc thesis experiments. Within this website, it is also possible to test the considered model with your own examples! You can download the weights of the model here. After having downloaded the file place it under the folder SocialFlood/static/keras.

How to use

The code was developed and tested in Python 3.6.7 with Django 2.2.1, and Keras 2.2.4 using Tensorflow 1.13.2 as backend. To run the server, simply execute:

$ python3 manage.py runserver

If you are running the server for the first time, do not forget to initialize the database using the following commands.

$ python3 manage.py makemigrations
$ python3 manage.py migrate

If you want to start the server using the images that I considered in my work, you have to download the files from here, and place them under the folder media/images/ on the root directory of the project. To create the instances on the database, execute the following command:

$ python3 manage.py init_db

It may take a while to start the server, since the Keras model is being loaded to memory. When the server starts running, to access the main page, please go to http://127.0.0.1:8000/maps/, your page should look similar to the one below.

screenshot