The official implementation of VectorNST (vector neural style transfer) model in PyTorch.
Install these requirements:
Example steps of installing:
pip install torch torchvision pillow numpy
pip install cssutils scikit-learn scikit-image svgwrite svgpathtools matplotlib
git clone --recursive https://github.com/IzhanVarsky/diffvg
cd diffvg && python ./setup.py install && cd ..
Run our example python test_vector_nst.py --content_img ./images/owl.svg --style_img ./images/owl1.jpg
.
You can also specify some other parameters: run python test_vector_nst.py --help
to see more info.