Giter VIP home page Giter VIP logo

marshiriseproject's Introduction

Mars Hirise Classification and Explanation for classification

Description of project

The goal behind the project is to train a classifier to classify the mars HiRISE images. The focus would be to understand the decisions made by the classifier so as to understand the interpretability of the model. This project aims to build an explainable CNN model to understand the following: • Why did my CNN classify this object as such? • Can I trust my CNN model? This project serves as an introduction to learn building explainable and interpretable AI models. This will help use trust us the ML model and truly understand the insights of the data. The final product can help build ML modules that can be integrated with multiple decision making tasks, in this understanding what my model sees and explain why what my camera sees is indeed a crater. In some cases when the ML model classifies a completely new object into one of the known classes, it lets us know why and where the model looked at to make such a decision. Finally this will truly help us the bias factor in the model and understand what the model prejudices over.

Prerequisites

In order to run the files for ML Challenges project, you will need python and pip3. (You can also use a conda environment)

Some important points:

  1. It is highly recommended to have a machine with CUDA supported GPU for pytorch
  2. Building conda environment is recommended for mangaging packages and modules
  3. (Not recommended) The program is setup to use Pytorch CPU as well if GPU is not available
  4. For visualization, please see the jupyter notebooks present in notebooks folder
  5. (Recommended) There is a backup code in backup_script folder. If the following evaluate.py file fails, it is recommended to use the python script in this folder.

Checkpoints and Dataset

The checkpoint for the Resnet 34 is present at : https://drive.google.com/file/d/1-2bUT6kls9bGVSbAiXc9saFzbdIPM0x2/view?usp=sharing

The original dataset is present at : https://doi.org/10.5281/zenodo.4002935

The data which has been split is present at : https://drive.google.com/file/d/1phWbjBjJePITe85z9gJmByPu4HH6GXkE/view?usp=sharing

pip

If pip, after activating environment, run : pip install -r requirements.txt

conda

conda activate <env> conda install --file requirements.txt

Usage

Activate the conda environment using conda activate env_name

Change directory to scripts. To run using pretrained model (must be in chkpts directory) : python evaluate.py --pretrained-model-path <path to pth file>

To train a new model: python evaluate.py

To run the backup code, after getting into backup_script directory : python mlchallengesprojectfocalloss.py

The newly trained model weights are stored as a pth file in results folder. To re use them, please store them in chkpts directory.

Presentation

presentation

License

This project is licensed under the MIT License.

marshiriseproject's People

Contributors

venkatramnank avatar

Stargazers

Levie avatar

Watchers

 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.