Skip to content

Tag: tensorflow

How to train a Keras autoencoder with custom dataset?

I am reading this tutorial in order to create my own autoencoder based on Keras. I followed the tutorial step by step, the only difference is that I want to train the model using my own images data set. So I changed/added the following code: My images are normal .jpg files in RGB format. However, as soon as t…

Concatenating empty array in Tensorflow

So basically, my question is the same as Concatenating empty array in Numpy but for Tensorflow. Mainly, the motivation is to handle the initial array in a prettier way that using a if statement. My current pseudo-code is: This technique works but I would like to make it a prettier way and maybe using only tf.…