Generative Modeling through the Semi-dual Formulation of Unbalanced Optimal Transport