Hello
I have done with training and got my model(weight). Now i want to use that model for extracting features (or prediction)
But the architectures from Keras (such as vgg, xception,...) only allow to use imagenet pre-trained model.
Must i create my own architectures to use my pre-trained models?
Or keras still provides source that allows us to use our own weight? if yes where is that source and how to use it?
Error:
| if weights not in {'imagenet', None}: |
| raise ValueError('The `weights` argument should be either ' |
| '`None` (random initialization) or `imagenet` ' |
| '(pre-training on ImageNet).') |
My code:
weights='./data/checkpoints/Xception-.001-0.588_2.hdf5'
base_model = Xception(
weights=weights,
include_top=True
)