Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Training wont work #1

Open
OterLabb opened this issue Nov 15, 2017 · 0 comments
Open

Training wont work #1

OterLabb opened this issue Nov 15, 2017 · 0 comments

Comments

@OterLabb
Copy link

Hi, im trying to replicate this project, but cant figure out whats wrong.
Running on ubuntu 16.04
Python 3.52
tensorflow 1.4.0 ( I also tried 1.2.0)

Does this need to be run at a special version of python/tensorflow? Any help appriciated :)
I have also slightly edited the train_model.py file for it to be able to find the .mp3's, but I dont think the problem is there.

This is what the log file looks like:
Init Coord Start Epoch: 0 / 1 TRAINING

And this is the python log:

/usr/bin/python3.5 /home/oterlabb/PycharmProjects/Birds/BirdCNN-master/train/train_model.py
test
2017-11-15 16:01:22.660240: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1323, in _do_call
    return fn(*args)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1302, in _run_fn
    status, run_metadata)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/errors_impl.py", line 473, in __exit__
    c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.OutOfRangeError: FIFOQueue '_0_batch/fifo_queue' is closed and has insufficient elements (requested 50, current size 0)
	 [[Node: batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_STRING], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](batch/fifo_queue, _arg_Placeholder_0_0)]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/oterlabb/PycharmProjects/Birds/BirdCNN-master/train/train_model.py", line 196, in <module>
    e_batch, p_batch = sess.run([batch_examples, batch_paths], feed_dict={ batch_size:SIZE_BATCH_TRAIN })
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 889, in run
    run_metadata_ptr)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1120, in _run
    feed_dict_tensor, options, run_metadata)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1317, in _do_run
    options, run_metadata)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1336, in _do_call
    raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.OutOfRangeError: FIFOQueue '_0_batch/fifo_queue' is closed and has insufficient elements (requested 50, current size 0)
	 [[Node: batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_STRING], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](batch/fifo_queue, _arg_Placeholder_0_0)]]

Caused by op 'batch', defined at:
  File "/home/oterlabb/PycharmProjects/Birds/BirdCNN-master/train/train_model.py", line 122, in <module>
    batch_examples, batch_paths = input_pipeline(audio_queue, batch_size, SIZE_TOTAL)
  File "/home/oterlabb/PycharmProjects/Birds/BirdCNN-master/train/functs.py", line 46, in input_pipeline
    return tf.train.batch([example, path], batch_size, capacity=capacity)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/training/input.py", line 927, in batch
    name=name)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/training/input.py", line 722, in _batch
    dequeued = queue.dequeue_many(batch_size, name=name)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/data_flow_ops.py", line 464, in dequeue_many
    self._queue_ref, n=n, component_types=self._dtypes, name=name)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/gen_data_flow_ops.py", line 2418, in _queue_dequeue_many_v2
    component_types=component_types, timeout_ms=timeout_ms, name=name)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
    op_def=op_def)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/ops.py", line 2956, in create_op
    op_def=op_def)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/ops.py", line 1470, in __init__
    self._traceback = self._graph._extract_stack()  # pylint: disable=protected-access

OutOfRangeError (see above for traceback): FIFOQueue '_0_batch/fifo_queue' is closed and has insufficient elements (requested 50, current size 0)
	 [[Node: batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_STRING], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](batch/fifo_queue, _arg_Placeholder_0_0)]]


Process finished with exit code 1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant