Combining Generative and Discriminative Methods for Pixel Classification with Multi-Conditional Learning