Are you planning to try "model_main.py" again instead of "train.py"
I suppose "model_main.py" should work better and mb then even fixed some errors which can affect speed/accuracy of models
I see model_main.py needs cocoapi (pycocotools)
For Windows we can install it from https://github.com/philferriere/cocoapi
but it fails with next errors TypeError: can't pickle dict_values objects
https://github.com/tensorflow/models/issues/5719
Seems this error can be solved by https://github.com/guildai/models/commit/d88f1fb9cad472c38149f208b086ca90c1da0856 https://github.com/tensorflow/models/issues/4780#issuecomment-405441448
seems it finally started to work with model_train.py
I start train like this (# From the tensorflow/models/research/ directory)
python object_detection\model_main.py --pipeline_config_path=object_detection\training\ssd_mobilenet_v1_pets.config --model_dir=object_detection\images --num_train_steps=50000 --sample_1_of_n_eval_examples=1 --alsologtostderr
(more info: https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/running_locally.md)
I see some checkpoints:

Though output of console isn't that useful: https://github.com/tensorflow/models/issues/5719#issuecomment-436927568
Solved and it works ok after some configuration: https://github.com/tensorflow/models/issues/5719#issuecomment-437323963
So SSD Models can be train normally with model_train.py (works on Windows and Ubuntu), with legacy train.py you can get OOM errors
also by default model_train.py doesn't print any logs in your console
here'e a solution to fix it:
add tf.logging.set_verbosity(tf.logging.INFO) line after imports in model_train.py


@anonym24 How is model_main.py different from train.py?
where is this model_train.py file?
@dscha09 I don't know but with legacy train.py you can get OOM errors while starting training and at some point of training
@JanithT-Lboro https://github.com/tensorflow/models/blob/master/research/object_detection/model_main.py
I was able to solve this problem by just using a PC with better specs.
C:\tensorflow\models\research>python object_detection\model_main.py --pipeline_config_path=object_detection\training\ssd_mobilenet_v1_pets.config --model_dir=object_detection\images --num_train_steps=50000 --sample_1_of_n_eval_examples=1 --alsologtostderr
Traceback (most recent call last):
File "object_detection\model_main.py", line 26, in
I got this error.How can i fix it.I installed protobuf, compiled it, added to path. OS:Windows 10 CPU:AMD A9 7th Gen. Python version:3.6 Protobuf version:3.4.0
@Futi7 I'm not sure on windows but I think you can solve it by running
protoc object_detection/protos/*.proto --python_out=.
this work great
Hey @anonym24 , I know it's been a year, but thanks for your work on this issue! I'm still considering whether to update my guide to use model_main.py rather than train.py. It's a bummer that it doesn't log training information in the console by default.
This issue (TensorFlow #6100) has some good information directly from a TensorFlow team member on the differences between train.py and model_main.py. From their comments, it sounds like there is no difference when using a normal PC for training.