Joint Training With Cnn And Graphical Model