Skip to content

gchenfc/diffvg-CLIP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

diffvg + CLIP

This was originally done as part of a class project for CS 7643 Fall 2021.

It is very similar to CLIPDraw which I didn't learn about until I was tuning parameters for this and went to search for inspiration.

It is using diffvg and CLIP.

To run, install CLIP and diffvg, then:

python src/diffvg_clip 
  --num_paths 1024
  --max_stroke_width 25
  --num_iter 200

diffvg examples

Also see painterly_rendering.py for the code to generate vector graphics given a raster image target.

PLEASE NOTE: THIS IS ALMOST COMPLETELY UNCHANGED FROM IT'S SOURCE EXAMPLE CODE IN THE DIFFVG REPOSITORY. Find the original version here

See painterly.sh for some command line parameters I ran it with, and use a diff-tool to see what changed from the original source.

About

Using diffvg steered by CLIP to generate a vector graphic given a text prompt, similar to CLIPDraw

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published