EdjeElectronics / TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10

How to train a TensorFlow Object Detection Classifier for multiple object detection on Windows
Apache License 2.0
2.92k stars 1.3k forks source link

ValueError: Unknown field calibration_config. #261

Open Samjith888 opened 5 years ago

Samjith888 commented 5 years ago

I have trained successfully before two weeks for my other project, after that i have installed tensorflow-GPU (without uninstalling tensorflow-cpu 1.9.0). Now i ran the training section for my other orject annd i got the error Getting the following error 'ValueError: Unknown field calibration_config.'. Then i have uninstalled tensorflow-gpu and ran the training. buti'm getting the same error again.

`[Traceback (most recent call last): File "train.py", line 184, in tf.app.run() File "C:\Users\Sa\AppData\Local\Programs\Python\Python36\lib\site-pack ages\tensorflow\python\platform\app.py", line 125, in run _sys.exit(main(argv)) File "C:\Users\Sa\AppData\Local\Programs\Python\Python36\lib\site-pack ages\tensorflow\python\util\deprecation.py", line 250, in new_func return func(*args, **kwargs) File "train.py", line 180, in main graph_hook_fn=graph_rewriter_fn) File "C:\Users\Sa\AppData\Local\Programs\Python\Python36\lib\site-pack ages\object_detection-0.1-py3.6.egg\object_detection\legacy\trainer.py", line 24 9, in train detection_model = create_model_fn() File "C:\Users\Sa\AppData\Local\Programs\Python\Python36\lib\site-pack ages\object_detection-0.1-py3.6.egg\object_detection\builders\model_builder.py", line 124, in build add_summaries) File "C:\Users\Sa\AppData\Local\Programs\Python\Python36\lib\site-pack ages\object_detection-0.1-py3.6.egg\object_detection\builders\model_builder.py", line 446, in _build_faster_rcnn_model ) = post_processing_builder.build(frcnn_config.second_stage_post_processing)

File "C:\Users\Sa\AppData\Local\Programs\Python\Python36\lib\site-pack ages\object_detection-0.1-py3.6.egg\object_detection\builders\post_processing_bu ilder.py", line 63, in build if post_processing_config.HasField('calibration_config'): ValueError: Unknown field calibration_config.`

Used the following versions Tensorflow 1.9.0 CPU

@EdjeElectronics @azylinski @HiCraigChen @mgh3326

Walid-Ahmed commented 5 years ago

I am having the same error. Any luck you solved it?

Rajamohanreddyai commented 5 years ago

Hi, check this link https://youtu.be/nZUxoHPFf4w

you can able to find solution in this video,.,.,.,.

you need to manually run the calibration protoc

Rajamohanreddyai commented 5 years ago

hi,

check this one, run the below command from research path

protoc --python_out=. .\object_detection\protos\calibration.proto

and verify below video

https://youtu.be/nZUxoHPFf4w