Generate Stable Vector graphics representations from text prompts using CLIP + DiffVG
Use a conda environment
conda create -n stablevectors python=3.7 jupyter ipython ipykenel ipywidgets
conda activate stablevectors
git clone https://github.com/BachiLi/diffvg.git
cd diffvg
git submodule update --init --recursive
conda install -y pytorch torchvision -c pytorch
conda install -y numpy
conda install -y scikit-image
conda install -y -c anaconda cmake
conda install -y -c conda-forge ffmpeg
pip install svgwrite
pip install svgpathtools
pip install cssutils
pip install numba
pip install torch-tools
pip install visdom
python setup.py install
If ran into some errors checkout issue 59 in diffvg
pip install clip
python main.py --config config.yaml --experiment experiment_8x1 --signature penguin --prompt a baby penguin --num_iter 200