Bayesian model learning in human visual perception