Variational volume reconstruction with the Deep Ritz Method