GithubHelp home page GithubHelp logo

03_explainable_perception's Introduction

Explainability of Deep Learning models for Urban Space Perception

Python code for the paper: Explainability of Deep Learning models for Urban Space Perception.

Setup and preprocessing

This repository has been tested on Windows with Python 3.8.

The dependencies can be installed using: pip install -r requirements.txt

This project uses the Place Pulse 2.0 dataset from Dubey et al. [1]. To use this dataset, place all images in a folder called placepulse/ in the root directory, as well as the votes.csv file containing all voting data. The code of this repository builds upon the work of A.C. Vidal [2].

To preprocess the dataset, it is advised to run the following scripts:

python image_crop.py
python place_pulse_clean.py
python placepulse_split.py

Training

Training of the models can be started by running the train.py file. Parameters such as the model to use and the attribute to train on can be specified by passing command line arguments. For more information, please run:

python train.py -h

Analysis and explainability methods

Pretrained models can be found in the models/ directory. These can be evaluated using the run_cam.py script. Parameters such as the explainability method to use can be specified at the end of this file.

References

[1] Dubey, Abhimanyu, et al. "Deep learning the city: Quantifying urban perception at a global scale." European conference on computer vision. Springer, Cham, 2016.

[2] Vidal, Andrés Cádiz. Deep Neural Network Models with Explainable Components for Urban Space Perception. Diss. Pontificia Universidad Catolica de Chile (Chile), 2021.

03_explainable_perception's People

Contributors

rsangers avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.