Skip to content

Commit fc4883f

Browse files
authored
Merge pull request #30 from Flippchen/dev
Dev
2 parents 276a064 + 1a4a619 commit fc4883f

40 files changed

Lines changed: 178 additions & 23 deletions

.github/workflows/python.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ jobs:
3131
- name: Pylint
3232
uses: dciborow/pyaction@0.0.13
3333
with:
34-
pylint: true
34+
pylint: true
35+
- name: Run pytest
36+
run: pytest tests/

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
<a href='https://play.google.com/store/apps/details?id=com.flippchen.porsche_classifier'><img alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png' height="70"/></a>
55
## Description
6-
This repository contains scripts to train models to classify pictures of Porsche cars. It is still in an early stage.
6+
This repository contains scripts to train models to classify pictures of Porsche cars.
7+
Check out the PowerPoint presentation [here](assets/Porsche_AI_classifier.pptx).
78

89
The following different model types are available:
910

@@ -115,13 +116,13 @@ Have a look at the [releases](https://github.com/Flippchen/PorscheInsight-CarCla
115116
To train a model you can use the [train](training) folder. You can choose the model, the dataset and the number of epochs.
116117
You can use the build in Discord Callback to get notfications on Discord after every epoch. You need to change the discord webhook url in the training file.
117118
### Predict with a model (Inference)
118-
To predict with a model you can use the [test_tf_model.py](testing/test_tf_model.py) script. You can choose the model and the image you want to predict.
119-
If you want to predict with an onnx model you can use the [test_onnx_model.py](testing/test_onnx_model.py) script.
119+
To predict with a model you can use the [test_tf_model.py](predicting/predict_tf_model.py) script. You can choose the model and the image you want to predict.
120+
If you want to predict with an onnx model you can use the [test_onnx_model.py](predicting/predict_onnx_model.py) script.
120121

121-
I recommend to prepare the images with [prepare_images.py](testing/prepare_images.py) before. Thus, an error-free and improved prediction is guaranteed.
122+
I recommend to prepare the images with [prepare_images.py](utilities/prepare_images.py) before. Thus, an error-free and improved prediction is guaranteed.
122123
### Explain a model
123124
To explain a model you can use the [explainer.py](model_insights/shap/explainer.py) script. You can choose the model and the image(folder) you want to get explanations.
124-
I recommend to prepare the images with [prepare_images.py](testing/prepare_images.py) before.
125+
I recommend to prepare the images with [prepare_images.py](utilities/prepare_images.py) before.
125126

126127
After using shap values on the new efficientnet model and the vgg16 model, both on the old head, I found out that the vgg16 model found "better" spots to distinguish between classes, at least sometimes.
127128

assets/Porsche_AI_classifier.pptx

3.81 MB
Binary file not shown.

testing/background_test/with_bg/test-bg-718-boxter.jpg renamed to predicting/background_test/with_bg/test-bg-718-boxter.jpg

File renamed without changes.

testing/background_test/with_bg/test-bg-cayenne.webp renamed to predicting/background_test/with_bg/test-bg-cayenne.webp

File renamed without changes.

testing/background_test/with_bg/test-bg-panamera.jpg renamed to predicting/background_test/with_bg/test-bg-panamera.jpg

File renamed without changes.

testing/background_test/without_bg/test-bg-718-boxter.jpg renamed to predicting/background_test/without_bg/test-bg-718-boxter.jpg

File renamed without changes.

testing/background_test/without_bg/test-bg-cayenne.webp renamed to predicting/background_test/without_bg/test-bg-cayenne.webp

File renamed without changes.

testing/background_test/without_bg/test-bg-panamera.jpg renamed to predicting/background_test/without_bg/test-bg-panamera.jpg

File renamed without changes.

0 commit comments

Comments
 (0)