E-gel-I is an object detection script aimed to identify a defined set of celebrity faces. The script is developed by Assem Hussein, Jonas Bartkowski as final project for the module fundamentals of artificial intelligence at THM university of applied science in Giessen, Germany.
Step 1. Clone this repository and download egele.zip
Step 2. Create a new virtual environment
extract egele.zip then run
python -m venv egele
Step 3. Activate your virtual environment
source egele/bin/activate # Linux
.\egele\Scripts\activate # Windows
Usage: egeli.py [options]
-n, --model-name= set a custom model name
-m, --pre-trained= the pretrained model to use in training.
This is set to ssd_mobilenet_v1_fpn_640x640_coco17_tpu-8 by default.
-s, --steps= set the count of steps for training
-t, --train= set boolean value to enable training
This is set to False by default.
-e, --evaluate= set boolean value to enable evaluation using tensor board
This is set to False by default.
-p, --save-plots= set boolean value to save plots after detection
This is set to False by default.
-d, --detect= set boolean value to enable detection.
Images must be at resources/images/test folder.
-i, --installation= set boolean value to install object detection api.
This is set to False by default.
-r, --generation= set boolean value to disable tf record generation.
-c, --checkpoint= set checkpoint to detect from.
-o, --threshold= set detection threshold (minimum score from which a label is drawn).
This is set to 0.8 by default.
-a, --random= enable random sequencing when detecting from test folder.
This is set to False by default.
-x, --test-scores== Generate report on average detection scores of labels in test files.
-v, --verbose= Enable more detailed output.
- Go to TensorFlow 2 Detection Model Zoo
- Choose a model then copy it's download link
- Go to configs.py and add it to
pretrained_models_uri
Map - Call the Script with
-n <model_name>
- Have fun!
- ssd_mobilenet_v1_fpn_640x640_coco17_tpu-8
- ssd_resnet152_v1_fpn_640x640_coco17_tpu-8
- ssd_resnet50_v1_fpn_640x640_coco17_tpu-8
- efficientdet_d1_coco17_tpu-32
- efficientdet_d0_coco17_tpu-32
- Delete everything in the relevant model folder under
./resources/models/[MODEL_NAME]
exceptpipeline.config
. - Retrain.
- Have fun!