Learned motion models for the perception and generation of dynamic humans and objects