CS593HAI Human-AI Interaction programming assignment 2 @Purdue.
This project only supports Ubuntu 20.04 or later.
Install Python 3.10.x.
Install Poetry 1.2 or later. See Poetry's documentation for details.
Poetry earlier than 1.2 will not work with this project.
Install the project's dependencies:
poetry install --no-root
Activate the virtual environment:
poetry shell
Execute the application:
python main.py
Make sure you are in the project's root directory and your have activated the virtual environment.
We currently only support JPEG images.
All model accuracies can be found in test_models.ipynb
. Also, you can find the inference script in src/concept_bottleneck/inference.py
.
Accuracy: 45.10%
- A pre-trained InceptionV3 model (finetuning)
- Optimizer: SGD
- Learning rate: 0.1
- Momentum: 0.9
- Epochs: 20 to converge
- Accuracy: 91.9892% (per attribute)
- A 2-layer MLP
- Optimizer: SGD
- Learning rate: 0.001
- Momentum: 0.9
- Epochs: 100 to converge
- Accuracy: 49.0507%
- Accuracy: 59.98%
- A 2-layer MLP
- Optimizer: SGD
- Learning rate: 0.05
- Momentum: 0.9
- Epochs: 300 to converge
- Accuracy: 59.9586%
- Combined the two models above
- Optimizer: SGD
- Learning rate: 0.1
- Momentum: 0.9
- Epochs: 150 to converge
- Accuracy: 33.7418%
See CONTRIBUTING.md for details.