It seems that the most-correct airliners are all side views in which the elongated fuselage is clearly visible. Views from the front or back are more likely to be incorrect.
For fighter jets, the most-correct ones all have a view slightly from the top or the bottom. ie, you get to see either the belly or the back of the fighter jet. Images with a view from the side are more likely to be incorrect.
Most images taken of airliners are views from the side. There is a clear lack of front or rear-view photos for airliners, and a lack of (horizontal) side view for fighter jets in my data.
train
airliners: 51 jpg images of airliners produced by boeing, bombardier, and embraer.
fighter-jets: 51 jpg images of western fighter jets such as the f-18, f-35.
test
airliners: 39 jpg images of airliners produced by airbus, such as the a380, a320.
fighter-jets: 39 jpg images of russian fighter jets produced by sukhoi and mikoyan, such as the su-35, mig-29.
valid
airliners: 20 jpg images of airliners produced by tupolev, such as the tu-154.
fighter-jets: 20 jpg images of korean and taiwanese fighter jets, such as the kai t-50 and aidc ching-kuo.
One thing I noticed in the example predictions you provided:
It seems that pictures of fighter jets mostly have sky in the background, while pictures of airliners are taken on the ground. Perhaps your model only recognizes those differences in the background and not the actual planes.
It would explain:
All most correct airliners have large ground-parts in their image
All most correct fighter-jets have sky in the background
The most incorrect Airliners are actually fighter jets with ground-background
The most incorrect fighter-jet is actually an airliner with sky-background
I experimented a bit with the CAM visualization. It’s a really nice tool for “debugging” models. Could you share your code+data? I’d love to verify if my assumption about the backgrounds is right.
Did some of your image files get mixed up? The most incorrect Fighter jets image is an airliner & the most incorrect airliner is actually a fighter jet!