消息关闭
    暂无新消息!
我运行cifar10的实例后,就出现了以下的问题,实在是没有头绪,请教大家了!谢谢!

ubuntu@ip-172-31-58-100:~$ python cifar10_train.py
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcublas.so.7.5 locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcudnn.so.5 locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcufft.so.7.5 locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcurand.so.7.5 locally
Traceback (most recent call last):
  File "cifar10_train.py", line 48, in <module>
    import cifar10
  File "/home/ubuntu/cifar10.py", line 43, in <module>
    """Number of images to process in a batch.""")
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/flags.py", line 91, in DEFINE_integer
    _define_helper(flag_name, default_value, docstring, int)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/flags.py", line 65, in _define_helper
    type=flagtype)
  File "/usr/lib/python2.7/argparse.py", line 1297, in add_argument
    return self._add_action(action)
  File "/usr/lib/python2.7/argparse.py", line 1671, in _add_action
    self._optionals._add_action(action)
  File "/usr/lib/python2.7/argparse.py", line 1498, in _add_action
    action = super(_ArgumentGroup, self)._add_action(action)
  File "/usr/lib/python2.7/argparse.py", line 1311, in _add_action
    self._check_conflict(action)
  File "/usr/lib/python2.7/argparse.py", line 1449, in _check_conflict
    conflict_handler(action, confl_optionals)
  File "/usr/lib/python2.7/argparse.py", line 1456, in _handle_conflict_error
    raise ArgumentError(action, message % conflict_string)
argparse.ArgumentError: argument --batch_size: conflicting option string(s): --batch_size



3个回答

︿ 1
我在一个图像分类训练的脚本中 好像也出现过这种异常, 后面是把训练的图片加多就好了