CS 240: Artificial Intelligence and Machine Learning Lab Project on Examining Machine Unlearning on Image Data by Sameer Arind Patil(23B1035) and Harsh Suthar(23B1067) To run this repo, follow the below steps
- clone this repo to your desktop
- Install all the dependencies by running the following command
pip3 install -r requirements.txt
- Run the analysis.ipynb notebook, this will plot the confusion matrices for each of the 6 models, while also geenrating the .pth files for the models, these files are not provided in this repo directly due to file size limit of 25MB on github(yep, the models are indeed big!)
- Put the generated models into ./models folder, this is the path set for the Streamit pathname
- Download the tar file for the CIFAR-10 dataset from https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz, put it in your cloned repository, and run the following command on the terminal to unzip it.
tar -xvzf cifar-10-python.tar.gz
- Run the following command on the terminal
python3 -m streamlit run inference_comparision.py
- This will redirect you to the webpage, where you can see the result plots, while also test the outputs from various models on different test input images