tensorflowmachine-learningtf-slimmobilenet

Trying to custom train MobilenetV2 with 40x40px images - wrong results after training


I need to classify small images in 4 different categories, +1 "background" for false detection.

While training the loss quickly drop to 0.7, but stay there even after 800k steps. In the end, the frozen graph seems to classify most images with the background label.

I'm probably missing something, I'll detail the steps I used below, and any feedback is welcomed. I'm new to tf-slim, so it can be an obvious mistake, maybe too little samples ? I'm not looking for top accuracy, just something working for prototyping.

Source materials can be found there : https://www.dropbox.com/s/k55xoygdzb2efag/TilesDataset.zip?dl=0

I used tensorflow-gpu 1.15.3 on windows 10.



I tried changing the depth_multiplier, the learning rate, learning on a cpu, removing --preprocessing_name "inception_v2" from the learning command. I don't have any idea left...


Solution

  • Change your learning rate, maybe start from the usual choice of 3e-5.