I use keras
version =2.03 and the first time I tried to run VGG16_avg.py, I got the error saying:
"_obtain_input_shape() got an unexpected keyword argument 'dim_ordering"
This, apparently , is due to an API change in the newer version of keras. Easily solvable by replacing the parameter with
data_format in vgg16_avg.py, as below:
# Determine proper input shape input_shape = _obtain_input_shape(input_shape, default_size=224, min_size=48, data_format=K.image_data_format(), include_top=include_top)