This repository contains our official implementation of the ICME 2025 paper: "VectorPainter: Advanced Stylized Vector Graphics Synthesis Using Stroke-Style Priors." VectorPainter synthesizes text-guided vector graphics by imitating strokes.
- 2025.03: 🔥 We released the code for VectorPainter.
- 2025.03: 🎉 VectorPainter accepted by ICME 2025. 🎉
To quickly get started with VectorPainter, follow the steps below.
These instructions will help you run quick inference locally.
Run the following command in the top-level directory:
chmod +x install.sh
bash install.sh
VectorPainter requires a pretrained Stable Diffusion (SD) model.
Set model_download=True
in /conf/config.yaml
before running VectorPainter.
Alternatively, append model_download=True
to the execution script.
- sydney opera house
python vectorpainter.py x=stroke "prompt='A photo of Sydney opera house'" style="./assets/starry.jpg" canvas_w=1024 canvas_h=1024 result_path='./workspace/starry/sydney_opera_house'
- mountain and cloud
python vectorpainter.py x=stroke "prompt='A mountain, with clouds in the sky'" style="./assets/starry.jpg" canvas_w=1024 canvas_h=1024 result_path='./workspace/starry/mountain'
- Sakura tree
python vectorpainter.py x=stroke "prompt='sakura tree.'" style="./assets/starry.jpg" x.num_paths=20000 canvas_w=1024 canvas_h=1024 result_path='./workspace/pink_cloud/sakura'
The project is built based on the following repository:
We gratefully thank the authors for their wonderful works.
If you use this code for your research, please cite the following work:
@article{hu2024vectorpainter,
title={VectorPainter: Advanced Stylized Vector Graphics Synthesis Using Stroke-Style Priors},
author={Hu, Juncheng and Xing, Ximing and Zhang, Jing and Yu, Qian},
journal={arXiv preprint arXiv:2405.02962},
year={2024}
}
This work is licensed under a MIT License.