From Dark Matter to Galaxies with Convolutional Neural Networks