Created
January 9, 2021 17:53
-
-
Save KostaMalsev/fab6db3f1fa131cf6f577397e58de863 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#You can change chosen model to deploy different models available in the TF2 object detection zoo | |
MODELS_CONFIG = { | |
'ssd_mobilenet_v2_320x320_coco17': { | |
'model_name': 'ssd_mobilenet_v2_320x320_coco17_tpu-8', | |
'base_pipeline_file': 'ssd_mobilenet_v2_320x320_coco17_tpu-8.config', | |
'pretrained_checkpoint': 'ssd_mobilenet_v2_320x320_coco17_tpu-8.tar.gz', | |
'batch_size': 16 | |
} | |
} | |
chosen_model = 'ssd_mobilenet_v2_320x320_coco17' | |
num_steps = 1800 #40000 #The more steps, the longer the training. Increase if your loss function is still decreasing and validation metrics are increasing. | |
num_eval_steps = 500 #Perform evaluation after so many steps | |
model_name = MODELS_CONFIG[chosen_model]['model_name'] | |
pretrained_checkpoint = MODELS_CONFIG[chosen_model]['pretrained_checkpoint'] | |
batch_size = MODELS_CONFIG[chosen_model]['batch_size'] #if you can fit a large batch in memory, it may speed up your trainin#g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment