Inference bug using --stats while running segnet.py when no class is detected

OK, found the issue and just fixed it in commit f2dae7. The problem was that I needed to manually specify the bin range to np.histogram(), because otherwise numpy will automatically compute it based on the min/max values of the array (which are skewed when only background is detected)

If you pull from master, the segnet.py --stats should be fixed now. Thanks for reporting this.