I am working on a convolutional neural network in a tensor stream, and I have a problem. The problem is that the input image that I read through tfrecords contains a certain number of nan values. The reason for this is the image representing the depth map, which has several infinite values ββin it and in the process of encoding it into tfrecord, and then decoding to feed it to the network, these infinite values ββbecome nan values.
Now, since in my situation replacing infinite values ββin the original image before encoding it in tfrecors is not an option, can I replace the nan values ββin the image tensor as an operation that I have to perform before I upload it to the network?
source share