juggernaut5k
juggernaut5k
Late to the party but I believe the problem is... You can set the width and height to be 800x800 but not 400x400 because 800 is evenly divisible by 32...
@strickon's method worked for me. Seems like tensorflow is trying to hog way too many resources at once and can't which crashes the operation. I specifically used: config.gpu_options.allow_growth = True
A good technique to try (I put this at the beginning of any script using tensorflow or keras). This prevents that resource exhausted error assuming you're batch size is within...
I'm using Keras 2.0.4 and.... Commenting out lines 771 to 777 of preprocessing/image.py was a quick fix for me. I didn't notice any ill effects by doing so after writing...
I believe you want to use categorical_accuracy for your metrics instead of accuracy. I've experienced that one in the past. Accuracy is for non one-hot encoded data.