I have tried your code in my own datasets, they are did preform well,but i don‘t know how to predict other images.