You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am training my own model built from scratch with Mobilenet_v2 SSD 320x320. I had about 1000 images for training, 100 for validation. However, when I try to check if my model is overfitting or underfitting using tensorboard --logdir, it only shows the training loss, even though I have added the validation set as well. How can I check if my model is overfitting or underfitting?
First off your learning rate decayed to zero before the model finished training so there was no change in the model after 50K steps. As can be seen here in you pipeline.config:
`
cosine_decay_learning_rate {
learning_rate_base: .08
total_steps: 50000 # This should = total number of steps
warmup_learning_rate: .026666
warmup_steps: 1000
}
`
The best way to determine overfitting is to test you model on images that it has not trained upon. If the model shows low loss values but is unable to classify any/very few objects from images it has never seen, the model is overfitted.
In the case of underfitting you loss will be much larger during training and will not reduce. Using cosine decay should significantly reduce the possibility of underfitting, but selecting a appropriate learning rate base value is still important.
Prerequisites
Please answer the following question for yourself before submitting an issue.
1. The entire URL of the file you are using
https://github.com/tensorflow/models/blob/master/research/object_detection/configs/tf2/ssd_mobilenet_v2_320x320_coco17_tpu-8.config
2. Describe the feature you request
I am training my own model built from scratch with Mobilenet_v2 SSD 320x320. I had about 1000 images for training, 100 for validation. However, when I try to check if my model is overfitting or underfitting using tensorboard --logdir, it only shows the training loss, even though I have added the validation set as well. How can I check if my model is overfitting or underfitting?
3. Additional context
Here is my model.config
4. Are you willing to contribute it? (Yes or No)
The text was updated successfully, but these errors were encountered: