Learning how to weave a hand-woven carpet