Skip to content
Advertisement

Due to huge images. Can we generalize flow_from_directory method for regression problem (CNN): input image and output is x,y (float)

Data is in a CSV file which includes image path and target (x and y). where x and y belong to [-1 to 1] after scale (in keras becasue there are so many image . I can not load all in X_train like normal). Thank you so much for help! data in csv file

Advertisement

Answer

I will write here as the comment section is getting bigger and bigger.

You can try to train the model using gradientTape. For details, please check here. With. that you will have more control over batches.

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