Tensorflow对象检测错误:协议消息Hyperparams没有字段group_norm

时间:2019-12-22 16:43:59

标签: python-3.x tensorflow object-detection-api

我正在尝试使用tensorflow 1.12.0运行自定义对象检测。我遇到以下错误。请帮忙。

我当前的设置:Conda 4.5.0,pip 19.3.1,Python 3.5.6,Tensorflow 1.12.0,Faster_rcnn_resnet50_coco,

还可以为TF对象检测提供一个很好的教程吗?

谢谢。

  File "model_main.py", line 109, in <module>
    tf.app.run()
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
    _sys.exit(main(argv))
  File "model_main.py", line 105, in main
    tf.estimator.train_and_evaluate(estimator, train_spec, eval_specs[0])
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\estimator\training.py", line 471, in train_and_evaluate
    return executor.run()
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\estimator\training.py", line 610, in run
    return self.run_local()
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\estimator\training.py", line 711, in run_local
    saving_listeners=saving_listeners)
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\estimator\estimator.py", line 354, in train
    loss = self._train_model(input_fn, hooks, saving_listeners)
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\estimator\estimator.py", line 1207, in _train_model
    return self._train_model_default(input_fn, hooks, saving_listeners)
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\estimator\estimator.py", line 1234, in _train_model_default
    input_fn, model_fn_lib.ModeKeys.TRAIN))
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\estimator\estimator.py", line 1075, in _get_features_and_labels_from_input_fn
    self._call_input_fn(input_fn, mode))
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\estimator\estimator.py", line 1162, in _call_input_fn
    return input_fn(**kwargs)
  File "F:\Konda\envs\tf1\lib\site-packages\object_detection\inputs.py", line 488, in _train_input_fn
    batch_size=params['batch_size'] if params else train_config.batch_size)
  File "F:\Konda\envs\tf1\lib\site-packages\object_detection\builders\dataset_builder.py", line 145, in build
    num_parallel_calls=num_parallel_calls)
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 1040, in map
    return ParallelMapDataset(self, map_func, num_parallel_calls)
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 2649, in __init__
    use_inter_op_parallelism)
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 2611, in __init__
    map_func, "Dataset.map()", input_dataset)
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 1860, in __init__
    self._function.add_to_graph(ops.get_default_graph())
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\framework\function.py", line 479, in add_to_graph
    self._create_definition_if_needed()
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\framework\function.py", line 335, in _create_definition_if_needed
    self._create_definition_if_needed_impl()
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\framework\function.py", line 344, in _create_definition_if_needed_impl
    self._capture_by_value, self._caller_device)
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\framework\function.py", line 864, in func_graph_from_py_func
    outputs = func(*func_graph.inputs)
  File "F:\Konda\envs\tf1\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 1794, in tf_data_structured_function_wrapper
    ret = func(*nested_args)
  File "F:\Konda\envs\tf1\lib\site-packages\object_detection\builders\dataset_builder.py", line 129, in process_fn
    processed_tensors = transform_input_data_fn(processed_tensors)
  File "F:\Konda\envs\tf1\lib\site-packages\object_detection\inputs.py", line 465, in transform_and_pad_input_data_fn
    model = model_builder.build(model_config, is_training=True)
  File "F:\Konda\envs\tf1\lib\site-packages\object_detection\builders\model_builder.py", line 122, in build
    add_summaries)
  File "F:\Konda\envs\tf1\lib\site-packages\object_detection\builders\model_builder.py", line 389, in _build_faster_rcnn_model
    frcnn_config.first_stage_box_predictor_conv_hyperparams, is_training)
  File "F:\Konda\envs\tf1\lib\site-packages\object_detection\builders\hyperparams_builder.py", line 219, in build
    if hyperparams_config.HasField('group_norm'):
ValueError: Protocol message Hyperparams has no field group_norm.

0 个答案:

没有答案