How johnskouloudis/cnn_project works
This repository is a coursework project for classifying chest X-rays into four categories. Its main workflow loads and transforms labeled images, splits them into training, validation, and test sets, trains one of several CNN or ResNet50 alternatives, then reports test metrics and displays a confusion matrix. It also supports dataset exploration and includes a standalone custom BasicBlock bonus implementation. The scripts and README establish the workflows; the graph does not imply that the bonus block is used by ResNet50.
Main entry points: train_test_functions.py Train and test helpers · COVID19Dataset.py Dataset and exploration · CNN1.py CNN1 workflow · CNN2.py CNN2 workflow
Components 8
Data
- X-ray image folders
- Dataset and exploration
COVID19Dataset.py
Classification
- CNN1 workflow
CNN1.py - CNN2 workflow
CNN2.py - ResNet50 workflow
ResNet50.py
Training and evaluation
- Train and test helpers
train_test_functions.py
Bonus model component
- Custom BasicBlock
BasicBlock.py
Other components
- Course user
Connections 14
- Course user → Dataset and exploration: explores data
README.md - Course user → CNN1 workflow: runs task
README.md - Course user → CNN2 workflow: runs task
README.md - Course user → ResNet50 workflow: chooses mode
README.md - X-ray image folders → Dataset and exploration: provides images
COVID19Dataset.py - CNN1 workflow → Dataset and exploration: loads and splits
CNN1.py - CNN2 workflow → Dataset and exploration: loads and splits
CNN2.py - ResNet50 workflow → Dataset and exploration: loads and splits
ResNet50.py - CNN1 workflow → Train and test helpers: trains and tests
CNN1.py - CNN2 workflow → Train and test helpers: trains and tests
CNN2.py - ResNet50 workflow → Train and test helpers: trains and tests
ResNet50.py - Train and test helpers → CNN1 workflow: runs model
train_test_functions.py - Train and test helpers → CNN2 workflow: runs model
train_test_functions.py - Train and test helpers → ResNet50 workflow: runs model
train_test_functions.py