Deep learning method transforms shapes