Skip to content
Advertisement

How to create tensorflow dataset from runtime generated images?

So, I start a small project based on tensorflow and could not understand how to prepare dataset generated from memory input. I have a random number of sources, that generate images. Than I pass it to python script. Images created as bytes array with png format. I collect images to array, and want to prepare dataset from it and train model based on this dataset.

JavaScript

After collecting all images, I want to start model training.

JavaScript

As I understand, tensorflow could accept numpy array or tensor, but I could not understand, what I should convert, each image separatly or whole array?
Or, more shortly, how to convert array of images global_feeded_images to dataset image_train_ds?

Advertisement

Answer

Correct solution was simple.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement