Closed jmettes closed 6 years ago
Hi, can you please find the updated extract_features.py
code. Please uninstall and reinstall Keras using pip. Keras version has been changed to 2.1.2
. There are lots of changes in applications module too. So, can you try with the updated code. Also, use HDFView
to see whether features are properly extracted or not by opening the features.h5
. Kindly let me know if this solved the issue.
Thanks for putting up this code. I'm just a bit confused as to why I'm getting vey low accuracy results from running your code. Any idea where it might be going wrong?
My
conf/config.json
I've downloaded the FLOWERS17 dataset, and ran
organize_flowers17.py
. It all looks good:they all seem to have 80 images:
the hd5 files seem to be filled:
Interestingly, if I download your
output/flowers_17/vgg19/features.h5
and, using that, runtrain.py
I get your results. So it seems like the problem has something to do withextract_features.py
Since I'm using Linux, I had to change a few parts of the code to let me use unix-style paths (e.g., '/' vs '\'). But I don't really see why it should matter since it still seems to be picking up all the files.