andreaazzini / segnet.tf Goto Github PK
View Code? Open in Web Editor NEWSegNet-like Autoencoders in TensorFlow
SegNet-like Autoencoders in TensorFlow
I get the error
RandomShuffleQueue '_3_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 12, current size 0)
in train.py train().inputs() call. If I move the init variables statement to before inputs() is called, pool, unpool variables are initialized properly, but during AdamOptimizer init, I get the error for uninitialized variables beta1.
Can you please help fix the variables initialization? I'm on Win 10, python 3.6 x64, TensorFlow 1.2.0
when I try to train the model I obtain this error could somebody help me?
Saving results to input
Launching 1 threads for spacings: [[0, 71]]
2018-02-13 15:15:23.414452: 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 AVX
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "tfrecorder.py", line 96, in _process_image_files_batch
image_buffer, height, width = _process_image(filename, coder)
File "tfrecorder.py", line 53, in _process_image
image_data = f.read()
File "/home/cedriq/.local/lib/python3.5/site-packages/tensorflow/python/lib/io/file_io.py", line 126, in read
pywrap_tensorflow.ReadFromStream(self._read_buf, length, status))
File "/home/cedriq/.local/lib/python3.5/site-packages/tensorflow/python/lib/io/file_io.py", line 94, in _prepare_value
return compat.as_str_any(val)
File "/home/cedriq/.local/lib/python3.5/site-packages/tensorflow/python/util/compat.py", line 106, in as_str_any
return as_str(value)
File "/home/cedriq/.local/lib/python3.5/site-packages/tensorflow/python/util/compat.py", line 84, in as_text
return bytes_or_text.decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
2018-02-13 15:15:24.444012: Finished writing all 71 images in data set.
Launching 1 threads for spacings: [[0, 39]]
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "tfrecorder.py", line 96, in _process_image_files_batch
image_buffer, height, width = _process_image(filename, coder)
File "tfrecorder.py", line 53, in _process_image
image_data = f.read()
File "/home/cedriq/.local/lib/python3.5/site-packages/tensorflow/python/lib/io/file_io.py", line 126, in read
pywrap_tensorflow.ReadFromStream(self._read_buf, length, status))
File "/home/cedriq/.local/lib/python3.5/site-packages/tensorflow/python/lib/io/file_io.py", line 94, in _prepare_value
return compat.as_str_any(val)
File "/home/cedriq/.local/lib/python3.5/site-packages/tensorflow/python/util/compat.py", line 106, in as_str_any
return as_str(value)
File "/home/cedriq/.local/lib/python3.5/site-packages/tensorflow/python/util/compat.py", line 84, in as_text
return bytes_or_text.decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
2018-02-13 15:15:25.452242: Finished writing all 39 images in data set.
Launching 1 threads for spacings: [[0, 76]]
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "tfrecorder.py", line 96, in _process_image_files_batch
image_buffer, height, width = _process_image(filename, coder)
File "tfrecorder.py", line 53, in _process_image
image_data = f.read()
File "/home/cedriq/.local/lib/python3.5/site-packages/tensorflow/python/lib/io/file_io.py", line 126, in read
pywrap_tensorflow.ReadFromStream(self._read_buf, length, status))
File "/home/cedriq/.local/lib/python3.5/site-packages/tensorflow/python/lib/io/file_io.py", line 94, in _prepare_value
return compat.as_str_any(val)
File "/home/cedriq/.local/lib/python3.5/site-packages/tensorflow/python/util/compat.py", line 106, in as_str_any
return as_str(value)
File "/home/cedriq/.local/lib/python3.5/site-packages/tensorflow/python/util/compat.py", line 84, in as_text
return bytes_or_text.decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
2018-02-13 15:15:26.460194: Finished writing all 76 images in data set.
Launching 1 threads for spacings: [[0, 82]]
Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "tfrecorder.py", line 96, in _process_image_files_batch
image_buffer, height, width = _process_image(filename, coder)
File "tfrecorder.py", line 53, in _process_image
image_data = f.read()
File "/home/cedriq/.local/lib/python3.5/site-packages/tensorflow/python/lib/io/file_io.py", line 126, in read
pywrap_tensorflow.ReadFromStream(self._read_buf, length, status))
File "/home/cedriq/.local/lib/python3.5/site-packages/tensorflow/python/lib/io/file_io.py", line 94, in _prepare_value
return compat.as_str_any(val)
File "/home/cedriq/.local/lib/python3.5/site-packages/tensorflow/python/util/compat.py", line 106, in as_str_any
return as_str(value)
File "/home/cedriq/.local/lib/python3.5/site-packages/tensorflow/python/util/compat.py", line 84, in as_text
return bytes_or_text.decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
2018-02-13 15:15:27.467536: Finished writing all 82 images in data set.
Can you please share your dataset so I can understand how the dataset has to be?
Hi @andreaazzini I'm trying to use your code and I'm getting issues related to the Queue Shuffling during training.
Do you know what should I do to proceed?
OutOfRangeError (see above for traceback): RandomShuffleQueue '_2_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 12, current size 0)
[[Node: shuffle_batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_FLOAT], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](shuffle_batch/random_shuffle_queue, shuffle_batch/n)]]
Thanks a lot for sharing your great work.
Could you please, add some parts to describe the final outputs (i.e. the predicted labels) of the test and training images?
Best
In the latest commit (with the addition of --strided) the call to self.decode() went missing in the refactor.
BW
M
Hi,
I notice in previous commits you have functionality to initialise the encoder weights from a pre-trained VGG16, but this does not appear to be in the latest version. Why has this been removed?
hi,
i experience the same issue, namely -
tensorflow.python.framework.errors_impl.OutOfRangeError: RandomShuffleQueue '...' is closed and has insufficient elements (requested 12, current size 0)
File "src/train.py", line 25, in train
images, labels = inputs(FLAGS.batch, FLAGS.train, FLAGS.train_labels)
File "src/inputs.py", line 29, in inputs
shuffle_batch
but i fail to understand what is meant by "correct resolution" in the related closed issue #10 .
thanks!
Hi
I'm training your net with camvid dataset. I followed your instructions but I get this error:
OutOfRangeError (see above for traceback): RandomShuffleQueue '_3_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 2, current size 0)
I think its not finding the training images which I did with your script. Could you please explain what you mean with this:
The dataset_name needs to match the data directories you create in your input folder. You can use segnet-32 and segnet-13 to replicate the aforementioned Kendall et al. experiments.
cheers
Hi,
I just found your project. Actually, it looks pretty cool/good.
I have some questions to ask you. One of them is if you could show me the structure of your input folder.
Another one is related to that folder too. I really can't find the segnet-32 dataset, do you still have it? or do you have any dataset avaidable?
I've also seen you've been updating your projecto to tensorflow v1.0. Is the proyect fully updated or at least does the current version work fine?
I would be very gratefull if you could help me.
Thanks!
Hello,
I'm getting the following error when I train my model after preparing my TFRecords files:
OutOfRangeError (see above for traceback): RandomShuffleQueue '_2_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 5, current size 0) [[Node: shuffle_batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_FLOAT], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](shuffle_batch/random_shuffle_queue, shuffle_batch/n)]]
All my images are 224x224 .PNGs, so I'm assuming that there's either a formatting issue with my training and test labelled images, or an issue with me using me using the CPU version of TensorFlow.
If the issue isn't from using the CPU version of TensorFlow, what sort of transforming is needed for the image annotations before using the tfrecorder to convert them? Does it involve converting the annotated images into color-mapped images using the colors from the config.py file?
Thanks!!
could you please help me regarding final outputs of segnet. how can we print or see the logs of test images
Hello,
from the code I have read in your project, it the unpool operation is just an image resize. So basically, this
network is not really a segnet network (at least not in a 'canonical' way from the paper).
Do you plan to use the locations of the max-pool layers to implement the standard unpool op ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.