PixelClassification: --retrain flag works even in non-headless mode.