CV-SPPnet icon indicating copy to clipboard operation
CV-SPPnet copied to clipboard

Dataset are gray image.

Open gtalan opened this issue 4 years ago • 0 comments

Dear writer, i want to test your code by image gray dataset.But there are some errors occured. I want to know how to solve it? Or how can I change the code to satisfy it?The following are the output in sppnet_alexnet.py. The error outputs are marked by bold.

WARNING:tensorflow:From C:/Users/alan/Desktop/CV-SPPnet-master/spp_mytest.py:263: softmax_cross_entropy_with_logits (from tensorflow.python.ops.nn_ops) is deprecated and will be removed in a future version. Instructions for updating:

Future major versions of TensorFlow will allow gradients to flow into the labels input on backprop by default.

See @{tf.nn.softmax_cross_entropy_with_logits_v2}.

2020-04-20 12:39:50.896449: I c:\users\user\source\repos\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2 2020-04-20 12:39:51.152151: E c:\users\user\source\repos\tensorflow\tensorflow\stream_executor\cuda\cuda_driver.cc:406] failed call to cuInit: CUDA_ERROR_UNKNOWN 2020-04-20 12:39:51.252042: I c:\users\user\source\repos\tensorflow\tensorflow\stream_executor\cuda\cuda_diagnostics.cc:158] retrieving CUDA diagnostic information for host: DESKTOP-S7JMSKL 2020-04-20 12:39:51.252348: I c:\users\user\source\repos\tensorflow\tensorflow\stream_executor\cuda\cuda_diagnostics.cc:165] hostname: DESKTOP-S7JMSKL Traceback (most recent call last): File "C:\Users\alan\anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\client\session.py", line 1322, in _do_call return fn(*args) File "C:\Users\alan\anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\client\session.py", line 1307, in _run_fn options, feed_dict, fetch_list, target_list, run_metadata) File "C:\Users\alan\anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\client\session.py", line 1409, in _call_tf_sessionrun run_metadata) tensorflow.python.framework.errors_impl.OutOfRangeError: RandomShuffleQueue '_1_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 102, current size 0) [[Node: shuffle_batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_INT32], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](shuffle_batch/random_shuffle_queue, shuffle_batch/n)]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:/Users/alan/Desktop/CV-SPPnet-master/spp_mytest.py", line 279, in x_train_batch, y_train_batch = sess.run([x_train, y_train]) File "C:\Users\alan\anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\client\session.py", line 900, in run run_metadata_ptr) File "C:\Users\alan\anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\client\session.py", line 1135, in _run feed_dict_tensor, options, run_metadata) File "C:\Users\alan\anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\client\session.py", line 1316, in _do_run run_metadata) File "C:\Users\alan\anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\client\session.py", line 1335, in _do_call raise type(e)(node_def, op, message) tensorflow.python.framework.errors_impl.OutOfRangeError: RandomShuffleQueue '_1_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 102, current size 0) [[Node: shuffle_batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_INT32], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](shuffle_batch/random_shuffle_queue, shuffle_batch/n)]]

Caused by op 'shuffle_batch', defined at: File "C:/Users/alan/Desktop/CV-SPPnet-master/spp_mytest.py", line 257, in x_train, y_train = flower_batch(flower_folder_train[i], batch_size, flower_size[i]) File "C:/Users/alan/Desktop/CV-SPPnet-master/spp_mytest.py", line 94, in flower_batch min_after_dequeue=10) File "C:\Users\alan\anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\training\input.py", line 1300, in shuffle_batch name=name) File "C:\Users\alan\anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\training\input.py", line 846, in _shuffle_batch dequeued = queue.dequeue_many(batch_size, name=name) File "C:\Users\alan\anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\ops\data_flow_ops.py", line 483, in dequeue_many self._queue_ref, n=n, component_types=self._dtypes, name=name) File "C:\Users\alan\anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\ops\gen_data_flow_ops.py", line 3799, in queue_dequeue_many_v2 component_types=component_types, timeout_ms=timeout_ms, name=name) File "C:\Users\alan\anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 787, in _apply_op_helper op_def=op_def) File "C:\Users\alan\anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\framework\ops.py", line 3392, in create_op op_def=op_def) File "C:\Users\alan\anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\framework\ops.py", line 1718, in init self._traceback = self._graph._extract_stack() # pylint: disable=protected-access

OutOfRangeError (see above for traceback): RandomShuffleQueue '_1_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 102, current size 0) [[Node: shuffle_batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_INT32], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](shuffle_batch/random_shuffle_queue, shuffle_batch/n)]]

gtalan avatar Apr 20 '20 04:04 gtalan