ValueError: Unrecognized keyword arguments 求大佬赐教

Traceback (most recent call last):
  File "C:/Users/86183/Desktop/边界正则化深度学习编解码网络/tensorflow-fcn-master/test_fcn8_vgg.py", line 45, in <module>
    vgg_fcn.build(batch_images, debug=True)
  File "C:\Users\86183\Desktop\边界正则化深度学习编解码网络\tensorflow-fcn-master\fcn8_vgg.py", line 72, in build
    summarize=4, first_n=1)
  File "D:\Anacoda\Anacoda\envs\tensorflow\lib\site-packages\tensorflow\python\util\dispatch.py", line 201, in wrapper
    return target(*args, **kwargs)
  File "D:\Anacoda\Anacoda\envs\tensorflow\lib\site-packages\tensorflow\python\ops\logging_ops.py", line 267, in print_v2
    raise ValueError("Unrecognized keyword arguments for tf.print: %s" % kwargs)
ValueError: Unrecognized keyword arguments for tf.print: {'message': 'Shape of input image: ', 'first_n': 1}

我看有的说是参数问题 具体我也很懵 求大佬赐教

logging_ops.py line 267行,tf.print: %s" % kwargs 这里出的问题。tf是你自定义类吗

vgg_fcn = fcn16_vgg.FCN16VGG()
    with tf.name_scope("content_vgg"):
        vgg_fcn.build(batch_images,debug=True)
        #vgg_fcn.build(batch_images, debug=True) 已修改
    print('Finished building Network.')


            if debug:
                bgr = tf.print(bgr, [tf.shape(bgr)],
                               message='Shape of input image: ',
                               summarize=4, first_n=1)


def add_dispatch_support(target):
  """Decorator that adds a dispatch handling wrapper to an op."""
  def wrapper(*args, **kwargs):
    """Call target, and fall back on dispatchers if there is a TypeError."""
    try:
      return target(*args, **kwargs)
    except (TypeError, ValueError):
      # Note: convert_to_eager_tensor currently raises a ValueError, not a
      # TypeError, when given unexpected types.  So we need to catch both.
      result = dispatch(wrapper, args, kwargs)
      if result is not OpDispatcher.NOT_SUPPORTED:
        return result
      else:
        raise

  if kwargs:
    raise ValueError("Unrecognized keyword arguments for tf.print: %s" % kwargs)
  format_name = None

 

我是安错误从上到下粘贴的  麻烦你看一下了  要是我提供的不对 您再给我说