Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tensorflow 在使用自定义数据集的attention_ocr培训课程中出错_Tensorflow - Fatal编程技术网

Tensorflow 在使用自定义数据集的attention_ocr培训课程中出错

Tensorflow 在使用自定义数据集的attention_ocr培训课程中出错,tensorflow,Tensorflow,我正在使用colab关注tensorflow的ocr和我的自定义数据集(我已经在colab中安装了我的google驱动器)。我已经使用labelImg作为图像的文本。然后将xml文件和图像保存在我的谷歌硬盘的同一文件夹中。我已经配置了我的数据集文件。我只使用两个图像的ocr模型 dataset.py文件: from datasets import fsns DEFAULT_DATASET_DIR = '/content/gdrive/My Drive/tensorflow/models/res

我正在使用colab关注tensorflow的ocr和我的自定义数据集(我已经在colab中安装了我的google驱动器)。我已经使用labelImg作为图像的文本。然后将xml文件和图像保存在我的谷歌硬盘的同一文件夹中。我已经配置了我的数据集文件。我只使用两个图像的ocr模型

dataset.py文件:

from datasets import fsns

DEFAULT_DATASET_DIR = '/content/gdrive/My Drive/tensorflow/models/research/attention_ocr/python/datasets/images/'

DEFAULT_CONFIG = {
    'name':
        'MYDATASET',
    'splits': {
        'train': {
            'size': 1,
            'pattern': 'train*'
        },
        'test': {
            'size': 1,
            'pattern': 'test*'
        }
    },
    'charset_filename':
        'charset_size=140.txt',
    'image_shape': (450, 600, 3),
    'num_of_views':
        1,
    'max_sequence_length':
        50,
    'null_code':
        133,
    'items_to_descriptions': {
        'image':
            'A [450 x 600 x 3] color image.',
        'label':
            'Characters codes.',
        'text':
            'A unicode string.',
        'length':
            'A length of the encoded text.',
        'num_of_views':
            'A number of different views stored within the image.'
    }
}


def get_split(split_name, dataset_dir=None, config=None):
  if not dataset_dir:
    dataset_dir = DEFAULT_DATASET_DIR
  if not config:
    config = DEFAULT_CONFIG

  return fsns.get_split(split_name, dataset_dir, config)
INFO:tensorflow:Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.FailedPreconditionError'>, /content/gdrive/My Drive/tensorflow/models/research/attention_ocr/python/datasets/images/train; Is a directory
     [[{{node parallel_read/ReaderReadV2}}]]
I1103 10:33:06.974534 139678619518720 coordinator.py:224] Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.FailedPreconditionError'>, /content/gdrive/My Drive/tensorflow/models/research/attention_ocr/python/datasets/images/train; Is a directory
     [[{{node parallel_read/ReaderReadV2}}]]
INFO:tensorflow:global_step/sec: 0
I1103 10:33:17.424118 139678594340608 supervisor.py:1099] global_step/sec: 0
INFO:tensorflow:Caught OutOfRangeError. Stopping Training. 2 root error(s) found.
  (0) Out of range: RandomShuffleQueue '_3_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 32, current size 0)
     [[node shuffle_batch (defined at /tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py:1748) ]]
  (1) Out of range: RandomShuffleQueue '_3_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 32, current size 0)
     [[node shuffle_batch (defined at /tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py:1748) ]]
     [[shuffle_batch/_1417]]
0 successful operations.
0 derived errors ignored.

Original stack trace for 'shuffle_batch':
  File "train.py", line 209, in <module>
    app.run()
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/platform/app.py", line 40, in run
    _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 300, in run
    _run_main(main, args)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 251, in _run_main
    sys.exit(main(argv))
  File "train.py", line 196, in main
    central_crop_size=common_flags.get_crop_size())
  File "/content/gdrive/My Drive/tensorflow/models/research/attention_ocr/python/data_provider.py", line 191, in get_data
    min_after_dequeue=shuffle_config.min_after_dequeue))
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/util/deprecation.py", line 324, in new_func
    return func(*args, **kwargs)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/training/input.py", line 1347, in shuffle_batch
    name=name)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/training/input.py", line 874, in _shuffle_batch
    dequeued = queue.dequeue_many(batch_size, name=name)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/ops/data_flow_ops.py", line 489, in dequeue_many
    self._queue_ref, n=n, component_types=self._dtypes, name=name)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/ops/gen_data_flow_ops.py", line 3862, in queue_dequeue_many_v2
    timeout_ms=timeout_ms, name=name)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/op_def_library.py", line 794, in _apply_op_helper
    op_def=op_def)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/util/deprecation.py", line 507, in new_func
    return func(*args, **kwargs)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py", line 3357, in create_op
    attrs, op_def, compute_device)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py", line 3426, in _create_op_internal
    op_def=op_def)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py", line 1748, in __init__
    self._traceback = tf_stack.extract_stack()

I1103 10:33:19.215315 139682365462400 learning.py:783] Caught OutOfRangeError. Stopping Training. 2 root error(s) found.
  (0) Out of range: RandomShuffleQueue '_3_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 32, current size 0)
     [[node shuffle_batch (defined at /tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py:1748) ]]
  (1) Out of range: RandomShuffleQueue '_3_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 32, current size 0)
     [[node shuffle_batch (defined at /tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py:1748) ]]
     [[shuffle_batch/_1417]]
0 successful operations.
0 derived errors ignored.

Original stack trace for 'shuffle_batch':
  File "train.py", line 209, in <module>
    app.run()
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/platform/app.py", line 40, in run
    _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 300, in run
    _run_main(main, args)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 251, in _run_main
    sys.exit(main(argv))
  File "train.py", line 196, in main
    central_crop_size=common_flags.get_crop_size())
  File "/content/gdrive/My Drive/tensorflow/models/research/attention_ocr/python/data_provider.py", line 191, in get_data
    min_after_dequeue=shuffle_config.min_after_dequeue))
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/util/deprecation.py", line 324, in new_func
    return func(*args, **kwargs)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/training/input.py", line 1347, in shuffle_batch
    name=name)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/training/input.py", line 874, in _shuffle_batch
    dequeued = queue.dequeue_many(batch_size, name=name)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/ops/data_flow_ops.py", line 489, in dequeue_many
    self._queue_ref, n=n, component_types=self._dtypes, name=name)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/ops/gen_data_flow_ops.py", line 3862, in queue_dequeue_many_v2
    timeout_ms=timeout_ms, name=name)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/op_def_library.py", line 794, in _apply_op_helper
    op_def=op_def)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/util/deprecation.py", line 507, in new_func
    return func(*args, **kwargs)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py", line 3357, in create_op
    attrs, op_def, compute_device)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py", line 3426, in _create_op_internal
    op_def=op_def)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py", line 1748, in __init__
    self._traceback = tf_stack.extract_stack()

INFO:tensorflow:Finished training! Saving model to disk.
I1103 10:33:19.220190 139682365462400 learning.py:785] Finished training! Saving model to disk.
/tensorflow-1.15.2/python3.6/tensorflow_core/python/summary/writer/writer.py:386: UserWarning: Attempting to use a closed FileWriter. The operation will be a noop unless the FileWriter is explicitly reopened.
  warnings.warn("Attempting to use a closed FileWriter. "
Traceback (most recent call last):
  File "train.py", line 209, in <module>
    app.run()
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/platform/app.py", line 40, in run
    _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 300, in run
    _run_main(main, args)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 251, in _run_main
    sys.exit(main(argv))
  File "train.py", line 205, in main
    train(total_loss, init_fn, hparams)
  File "train.py", line 153, in train
    init_fn=init_fn)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/contrib/slim/python/slim/learning.py", line 790, in train
    ignore_live_threads=ignore_live_threads)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/training/supervisor.py", line 839, in stop
    ignore_live_threads=ignore_live_threads)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/training/coordinator.py", line 389, in join
    six.reraise(*self._exc_info_to_raise)
  File "/usr/local/lib/python3.6/dist-packages/six.py", line 703, in reraise
    raise value
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/training/queue_runner_impl.py", line 257, in _run
    enqueue_callable()
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/client/session.py", line 1287, in _single_operation_run
    self._call_tf_sessionrun(None, {}, [], target_list, None)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/client/session.py", line 1443, in _call_tf_sessionrun
    run_metadata)
tensorflow.python.framework.errors_impl.FailedPreconditionError: /content/gdrive/My Drive/tensorflow/models/research/attention_ocr/python/datasets/images/train; Is a directory
     [[{{node parallel_read/ReaderReadV2}}]]
日志:

from datasets import fsns

DEFAULT_DATASET_DIR = '/content/gdrive/My Drive/tensorflow/models/research/attention_ocr/python/datasets/images/'

DEFAULT_CONFIG = {
    'name':
        'MYDATASET',
    'splits': {
        'train': {
            'size': 1,
            'pattern': 'train*'
        },
        'test': {
            'size': 1,
            'pattern': 'test*'
        }
    },
    'charset_filename':
        'charset_size=140.txt',
    'image_shape': (450, 600, 3),
    'num_of_views':
        1,
    'max_sequence_length':
        50,
    'null_code':
        133,
    'items_to_descriptions': {
        'image':
            'A [450 x 600 x 3] color image.',
        'label':
            'Characters codes.',
        'text':
            'A unicode string.',
        'length':
            'A length of the encoded text.',
        'num_of_views':
            'A number of different views stored within the image.'
    }
}


def get_split(split_name, dataset_dir=None, config=None):
  if not dataset_dir:
    dataset_dir = DEFAULT_DATASET_DIR
  if not config:
    config = DEFAULT_CONFIG

  return fsns.get_split(split_name, dataset_dir, config)
INFO:tensorflow:Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.FailedPreconditionError'>, /content/gdrive/My Drive/tensorflow/models/research/attention_ocr/python/datasets/images/train; Is a directory
     [[{{node parallel_read/ReaderReadV2}}]]
I1103 10:33:06.974534 139678619518720 coordinator.py:224] Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.FailedPreconditionError'>, /content/gdrive/My Drive/tensorflow/models/research/attention_ocr/python/datasets/images/train; Is a directory
     [[{{node parallel_read/ReaderReadV2}}]]
INFO:tensorflow:global_step/sec: 0
I1103 10:33:17.424118 139678594340608 supervisor.py:1099] global_step/sec: 0
INFO:tensorflow:Caught OutOfRangeError. Stopping Training. 2 root error(s) found.
  (0) Out of range: RandomShuffleQueue '_3_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 32, current size 0)
     [[node shuffle_batch (defined at /tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py:1748) ]]
  (1) Out of range: RandomShuffleQueue '_3_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 32, current size 0)
     [[node shuffle_batch (defined at /tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py:1748) ]]
     [[shuffle_batch/_1417]]
0 successful operations.
0 derived errors ignored.

Original stack trace for 'shuffle_batch':
  File "train.py", line 209, in <module>
    app.run()
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/platform/app.py", line 40, in run
    _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 300, in run
    _run_main(main, args)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 251, in _run_main
    sys.exit(main(argv))
  File "train.py", line 196, in main
    central_crop_size=common_flags.get_crop_size())
  File "/content/gdrive/My Drive/tensorflow/models/research/attention_ocr/python/data_provider.py", line 191, in get_data
    min_after_dequeue=shuffle_config.min_after_dequeue))
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/util/deprecation.py", line 324, in new_func
    return func(*args, **kwargs)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/training/input.py", line 1347, in shuffle_batch
    name=name)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/training/input.py", line 874, in _shuffle_batch
    dequeued = queue.dequeue_many(batch_size, name=name)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/ops/data_flow_ops.py", line 489, in dequeue_many
    self._queue_ref, n=n, component_types=self._dtypes, name=name)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/ops/gen_data_flow_ops.py", line 3862, in queue_dequeue_many_v2
    timeout_ms=timeout_ms, name=name)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/op_def_library.py", line 794, in _apply_op_helper
    op_def=op_def)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/util/deprecation.py", line 507, in new_func
    return func(*args, **kwargs)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py", line 3357, in create_op
    attrs, op_def, compute_device)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py", line 3426, in _create_op_internal
    op_def=op_def)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py", line 1748, in __init__
    self._traceback = tf_stack.extract_stack()

I1103 10:33:19.215315 139682365462400 learning.py:783] Caught OutOfRangeError. Stopping Training. 2 root error(s) found.
  (0) Out of range: RandomShuffleQueue '_3_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 32, current size 0)
     [[node shuffle_batch (defined at /tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py:1748) ]]
  (1) Out of range: RandomShuffleQueue '_3_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 32, current size 0)
     [[node shuffle_batch (defined at /tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py:1748) ]]
     [[shuffle_batch/_1417]]
0 successful operations.
0 derived errors ignored.

Original stack trace for 'shuffle_batch':
  File "train.py", line 209, in <module>
    app.run()
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/platform/app.py", line 40, in run
    _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 300, in run
    _run_main(main, args)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 251, in _run_main
    sys.exit(main(argv))
  File "train.py", line 196, in main
    central_crop_size=common_flags.get_crop_size())
  File "/content/gdrive/My Drive/tensorflow/models/research/attention_ocr/python/data_provider.py", line 191, in get_data
    min_after_dequeue=shuffle_config.min_after_dequeue))
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/util/deprecation.py", line 324, in new_func
    return func(*args, **kwargs)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/training/input.py", line 1347, in shuffle_batch
    name=name)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/training/input.py", line 874, in _shuffle_batch
    dequeued = queue.dequeue_many(batch_size, name=name)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/ops/data_flow_ops.py", line 489, in dequeue_many
    self._queue_ref, n=n, component_types=self._dtypes, name=name)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/ops/gen_data_flow_ops.py", line 3862, in queue_dequeue_many_v2
    timeout_ms=timeout_ms, name=name)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/op_def_library.py", line 794, in _apply_op_helper
    op_def=op_def)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/util/deprecation.py", line 507, in new_func
    return func(*args, **kwargs)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py", line 3357, in create_op
    attrs, op_def, compute_device)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py", line 3426, in _create_op_internal
    op_def=op_def)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py", line 1748, in __init__
    self._traceback = tf_stack.extract_stack()

INFO:tensorflow:Finished training! Saving model to disk.
I1103 10:33:19.220190 139682365462400 learning.py:785] Finished training! Saving model to disk.
/tensorflow-1.15.2/python3.6/tensorflow_core/python/summary/writer/writer.py:386: UserWarning: Attempting to use a closed FileWriter. The operation will be a noop unless the FileWriter is explicitly reopened.
  warnings.warn("Attempting to use a closed FileWriter. "
Traceback (most recent call last):
  File "train.py", line 209, in <module>
    app.run()
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/platform/app.py", line 40, in run
    _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 300, in run
    _run_main(main, args)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 251, in _run_main
    sys.exit(main(argv))
  File "train.py", line 205, in main
    train(total_loss, init_fn, hparams)
  File "train.py", line 153, in train
    init_fn=init_fn)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/contrib/slim/python/slim/learning.py", line 790, in train
    ignore_live_threads=ignore_live_threads)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/training/supervisor.py", line 839, in stop
    ignore_live_threads=ignore_live_threads)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/training/coordinator.py", line 389, in join
    six.reraise(*self._exc_info_to_raise)
  File "/usr/local/lib/python3.6/dist-packages/six.py", line 703, in reraise
    raise value
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/training/queue_runner_impl.py", line 257, in _run
    enqueue_callable()
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/client/session.py", line 1287, in _single_operation_run
    self._call_tf_sessionrun(None, {}, [], target_list, None)
  File "/tensorflow-1.15.2/python3.6/tensorflow_core/python/client/session.py", line 1443, in _call_tf_sessionrun
    run_metadata)
tensorflow.python.framework.errors_impl.FailedPreconditionError: /content/gdrive/My Drive/tensorflow/models/research/attention_ocr/python/datasets/images/train; Is a directory
     [[{{node parallel_read/ReaderReadV2}}]]
INFO:tensorflow:向协调员报告错误:,/content/gdrive/My Drive/tensorflow/models/research/attention\u ocr/python/dataset/images/train;是一个目录
[{{node parallel_read/ReaderReadV2}}]]
I1103 10:33:06.974534 139678619518720 coordinator.py:224]向coordinator报告的错误:,/content/gdrive/My Drive/tensorflow/models/research/attention\u ocr/python/dataset/images/train;是一个目录
[{{node parallel_read/ReaderReadV2}}]]
信息:tensorflow:全局\u步/秒:0
I1103 10:33:17.424118 139678594340608主管。py:1099]全局步骤/秒:0
信息:tensorflow:捕获范围错误。停止训练。发现2个根错误。
(0)超出范围:RandomShuffleQueue“\u 3\u shuffle\u batch/Randomy\u shuffle\u queue”已关闭且元素不足(请求的32个,当前大小为0)
[[node shuffle_batch(定义于/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py:1748)]]
(1) 超出范围:RandomShuffleQueue“\u 3\u shuffle\u batch/Randomy\u shuffle\u queue”已关闭且元素不足(请求的32个,当前大小为0)
[[node shuffle_batch(定义于/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py:1748)]]
[[shuffle\u batch/\u 1417]]
0成功的操作。
忽略0个派生错误。
“shuffle\u批处理”的原始堆栈跟踪:
文件“train.py”,第209行,在
app.run()
文件“/tensorflow-1.15.2/python3.6/tensorflow_core/python/platform/app.py”,第40行,正在运行
_运行(main=main,argv=argv,flags\u parser=\u parse\u flags\u tolerate\u unde)
文件“/usr/local/lib/python3.6/dist-packages/absl/app.py”,第300行,运行中
_运行_main(main,args)
文件“/usr/local/lib/python3.6/dist-packages/absl/app.py”,第251行,在主
系统出口(主(argv))
文件“train.py”,第196行,在main中
中央裁剪大小=通用裁剪标志。获取裁剪大小()
文件“/content/gdrive/My Drive/tensorflow/models/research/attention\u ocr/python/data\u provider.py”,第191行,在get\u data中
退出队列后的最小值=shuffle\u config.min\u退出队列后的最小值)
文件“/tensorflow-1.15.2/python3.6/tensorflow_core/python/util/deprecation.py”,第324行,在new_func中
返回函数(*args,**kwargs)
文件“/tensorflow-1.15.2/python3.6/tensorflow\u core/python/training/input.py”,第1347行,在shuffle\u批处理中
名称=名称)
文件“/tensorflow-1.15.2/python3.6/tensorflow\u core/python/training/input.py”,第874行,在“shuffle”批处理中
dequeued=queue.dequeue\u many(批量大小,名称=name)
文件“/tensorflow-1.15.2/python3.6/tensorflow\u core/python/ops/data\u flow\u ops.py”,第489行,出列
self.\u queue\u ref,n=n,component\u types=self.\u dtypes,name=name)
文件“/tensorflow-1.15.2/python3.6/tensorflow\u core/python/ops/gen\u data\u flow\u ops.py”,第3862行,在queue\u dequeue\u many\u v2中
超时时间=超时时间,名称=名称)
文件“/tensorflow-1.15.2/python3.6/tensorflow_-core/python/framework/op_-def_-library.py”,第794行,在“应用”op_-helper中
op_def=op_def)
文件“/tensorflow-1.15.2/python3.6/tensorflow_core/python/util/deprecation.py”,第507行,在new_func中
返回函数(*args,**kwargs)
文件“/tensorflow-1.15.2/python3.6/tensorflow\u core/python/framework/ops.py”,第3357行,在create\u op中
属性、运算定义、计算设备)
文件“/tensorflow-1.15.2/python3.6/tensorflow\u core/python/framework/ops.py”,第3426行,位于创建操作内部
op_def=op_def)
文件“/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py”,第1748行,在u_init中__
self.\u traceback=tf\u stack.extract\u stack()
I1103 10:33:19.21531539682365462400学习。py:783]发现范围错误。停止训练。发现2个根错误。
(0)超出范围:RandomShuffleQueue“\u 3\u shuffle\u batch/Randomy\u shuffle\u queue”已关闭且元素不足(请求的32个,当前大小为0)
[[node shuffle_batch(定义于/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py:1748)]]
(1) 超出范围:RandomShuffleQueue“\u 3\u shuffle\u batch/Randomy\u shuffle\u queue”已关闭且元素不足(请求的32个,当前大小为0)
[[node shuffle_batch(定义于/tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py:1748)]]
[[shuffle\u batch/\u 1417]]
0成功的操作。
忽略0个派生错误。
“shuffle\u批处理”的原始堆栈跟踪:
文件“train.py”,第209行,在
app.run()
文件“/tensorflow-1.15.2/python3.6/tensorflow_core/python/platform/app.py”,第40行,正在运行
_运行(main=main,argv=argv,flags\u parser=\u parse\u flags\u tolerate\u unde)
文件“/usr/local/lib/python3.6/dist-packages/absl/app.py”,第300行,运行中
_运行_main(main,args)
文件“/usr/local/lib/python3.6/dist-packages/absl/app.py”,第251行,在主
系统出口(主(argv))
文件“train.py”,第196行,在main中
中央裁剪大小=通用裁剪标志。获取裁剪大小()
文件“/content/gdrive/My Drive/tensorflow/models/research/attention\u ocr/python/data\u provider.py”,第191行,在get\u data中
退出队列后的最小值=shuffle\u config.min\u退出队列后的最小值)
文件“/tensorflow-1.15.2/python3.6/tensorflow_core/python/util/deprecation.py”,第324行,在new_func中
返回函数(*args,**kwargs)
文件“/tensorflow-1.15.2/python3.6/tensorflow\u core/python/training/input.py”,第1347行,在shuffle\u批处理中
名称=名称)
文件“/tensorflow-1.15.2/python3.6/tensorflow\u core/python/training/input.py”,第874行,在“shuffle”批处理中
dequeued=queue.dequeue\u many(批量大小,名称=name)
文件“/tensorflow-1.15.2/python3.6/tensorflow\u core/python/ops/data\u flow\u ops.py”,第489行,出列
self.\u queue\u ref,n=n,component\u types=self.\u dtypes,name=nam