Flow and Diffusion Models