-
Notifications
You must be signed in to change notification settings - Fork 429
result about run inference.py #163
Comments
According to the link provided by readme, only deeplab_resnet_init. CKPT file, not the pre-trained model file, is this the reason for the inaccuracy of inferernce?? Could you please provide the pre- training document? Thank you very much! |
there is deeplab_resnet.ckpt provided; you need to download it and run inference with it |
I am very glad to receive your reply. The last problem has been solved! Caused by op u'create_inputs/batch', defined at: OutOfRangeError (see above for traceback): FIFOQueue '_1_create_inputs/batch/fifo_queue' is closed and has insufficient elements (requested 10, current size 5) |
Make sure that all the images from the training list are present.
Otherwise, you will be getting this error:
Not found: ./dataset/VOCdevkit/JPEGImages/2007_000032.jpg
…On 24 January 2018 at 13:40, sunbin1205 ***@***.***> wrote:
I am very glad to receive your reply. The last problem has been solved!
But the other problem is that I have downloaded the segmentationclassaug
dataset in the dataset, and I have this error when I run the train.py.
step 62 loss = 1.486, (62.292 sec/step)
step 63 loss = 1.632, (61.552 sec/step)
2018-01-25 02:10:06.684534: W tensorflow/core/framework/op_kernel.cc:1152]
Not found: ./dataset/VOCdevkit/JPEGImages/2007_000032.jpg
step 64 loss = 1.602, (62.308 sec/step)
step 65 loss = 1.555, (61.499 sec/step)
step 66 loss = 1.723, (62.328 sec/step)
Traceback (most recent call last):
File "train.py", line 258, in
main()
File "train.py", line 251, in main
loss_value, _ = sess.run([reduced_loss, train_op], feed_dict=feed_dict)
File "/home/zbw/anaconda2/envs/sun/lib/python2.7/site-packages/
tensorflow/python/client/session.py", line 778, in run
run_metadata_ptr)
File "/home/zbw/anaconda2/envs/sun/lib/python2.7/site-packages/
tensorflow/python/client/session.py", line 982, in _run
feed_dict_string, options, run_metadata)
File "/home/zbw/anaconda2/envs/sun/lib/python2.7/site-packages/
tensorflow/python/client/session.py", line 1032, in _do_run
target_list, options, run_metadata)
File "/home/zbw/anaconda2/envs/sun/lib/python2.7/site-packages/
tensorflow/python/client/session.py", line 1052, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.OutOfRangeError: FIFOQueue
'_1_create_inputs/batch/fifo_queue' is closed and has insufficient
elements (requested 10, current size 5)
[[Node: create_inputs/batch = QueueDequeueManyV2[component_types=[DT_FLOAT,
DT_UINT8], timeout_ms=-1, _device="/job:localhost/
replica:0/task:0/cpu:0"](create_inputs/batch/fifo_queue,
create_inputs/batch/n)]]
Caused by op u'create_inputs/batch', defined at:
File "train.py", line 258, in
main()
File "train.py", line 146, in main
image_batch, label_batch = reader.dequeue(args.batch_size)
File "/media/Linux/sun/Segmentation/tensorflow-
deeplab-resnet-master/deeplab_resnet/image_reader.py", line 179, in
dequeue
num_elements)
File "/home/zbw/anaconda2/envs/sun/lib/python2.7/site-packages/
tensorflow/python/training/input.py", line 917, in batch
name=name)
File "/home/zbw/anaconda2/envs/sun/lib/python2.7/site-packages/
tensorflow/python/training/input.py", line 712, in _batch
dequeued = queue.dequeue_many(batch_size, name=name)
File "/home/zbw/anaconda2/envs/sun/lib/python2.7/site-packages/
tensorflow/python/ops/data_flow_ops.py", line 458, in dequeue_many
self._queue_ref, n=n, component_types=self._dtypes, name=name)
File "/home/zbw/anaconda2/envs/sun/lib/python2.7/site-packages/
tensorflow/python/ops/gen_data_flow_ops.py", line 1328, in
_queue_dequeue_many_v2
timeout_ms=timeout_ms, name=name)
File "/home/zbw/anaconda2/envs/sun/lib/python2.7/site-packages/
tensorflow/python/framework/op_def_library.py", line 768, in apply_op
op_def=op_def)
File "/home/zbw/anaconda2/envs/sun/lib/python2.7/site-packages/
tensorflow/python/framework/ops.py", line 2336, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/home/zbw/anaconda2/envs/sun/lib/python2.7/site-packages/
tensorflow/python/framework/ops.py", line 1228, in *init*
self._traceback = _extract_stack()
OutOfRangeError (see above for traceback): FIFOQueue
'_1_create_inputs/batch/fifo_queue' is closed and has insufficient
elements (requested 10, current size 5)
[[Node: create_inputs/batch = QueueDequeueManyV2[component_types=[DT_FLOAT,
DT_UINT8], timeout_ms=-1, _device="/job:localhost/
replica:0/task:0/cpu:0"](create_inputs/batch/fifo_queue,
create_inputs/batch/n)]]
This is the result of incorrect data set. I tried to delete the relevant
path in the train.txt, but it seems that there are too many problems, and I
think deleting the path is not a correct method. What is the reason for
this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#163 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHemmOv8_rTRp6LEAKMjqKzh1W95rcjlks5tNp8UgaJpZM4Ro-2a>
.
|
@DrSleep I'm so sorry to distrub you again.Run the (python fine_tun.py -not-restore-last) error.it seems that jpg and png can be load ,but what is the problem?I guess may be the reason is cuda?? 2018-01-26 03:50:20.103520: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations. Caused by op u'create_inputs/batch', defined at: OutOfRangeError (see above for traceback): FIFOQueue '_1_create_inputs/batch/fifo_queue' is closed and has insufficient elements (requested 2, current size 0) |
Hi @DrSleep, I also meet the problem when I run the inference.py. I retain the model using the following setup, because the original batch size is out of memory I changed it to 4 the train.txt is as follows: /JPEGImages/2007_000032.jpg /SegmentationClass/2007_000032.png The logs is showing as follow: It looks normal right? but when I run the inferency. py the results are all background,even though I use the training image. Do you have any suggestion about this error? Thank you! |
Something with the drivers I assume. Can't help with that one. @minnieyao |
Hi, @minnieyao. |
Perform inference. py tests a picture, and the segmentation result shows no complete outline of the object, but a lot of color spots. How to solve it? Looking forward to your reply!!
@DrSleep
The text was updated successfully, but these errors were encountered: