Closed TheStoneMX closed 5 years ago
The input size was not supported as low as 96x96. Now it should be fixed.
Same error ocurred to me when fine tuning:
VGGFace(model='resnet50', include_top=False, input_shape=(112, 112, 3))
ERROR: ValueError: Negative dimension size caused by subtracting 7 from 4 for 'avg_pool_2/AvgPool' (op: 'AvgPool') with input shapes: [?,4,4,2048].
tf version 1.14.0 keras version 2.2.0 vggface version 0.6
The input size was not supported as low as 96x96. Now it should be fixed.
Hello, @rcmalli I am also getting the same error as werlang. Could you please comment, if there is something that we could be possibly missing?
If you use smaller input shape, maybe we need decrease the number of CNN layers in networks accordingly. Because Conv2D or Average/MaxPooling layers will reduce the dims of features map layer by layer, if the input shape is too small, there is no space/data for those layers to operate.
Any thoughts about it?
Same error ocurred to me when fine tuning:
VGGFace(model='resnet50', include_top=False, input_shape=(112, 112, 3))
ERROR: ValueError: Negative dimension size caused by subtracting 7 from 4 for 'avg_pool_2/AvgPool' (op: 'AvgPool') with input shapes: [?,4,4,2048].
tf version 1.14.0 keras version 2.2.0 vggface version 0.6
Please run this code and share your library versions
I am trying to use VGGFace with resnet50, but with smaller image dimensions, I was wondering how can I do this without re-training the model from scratch...