Weakly Supervised CNN Segmentation: Models and Optimization