引入Xception预训练权值:
convBase = Xception(weights='imagenet',include_top=False,
input_shape=(200,200,3)
报错:
TypeError: separable_conv2d() got an unexpected keyword argument 'data_format'
原因:
tensorflow版本过低,升级:
pip install --upgrade tensorflow
or
pip install --upgrade tensorflow-gpu
升级版本1.7.0后,不再报错