BachiLi / diffvg

Differentiable Vector Graphics Rasterization
https://people.csail.mit.edu/tzumao/diffvg/
Apache License 2.0
923 stars 155 forks source link

Issue running my own image. #11

Open tswanson-cs opened 3 years ago

tswanson-cs commented 3 years ago

What would be the steps for taking my own JPEG and generating an SVG?

tswanson-cs commented 3 years ago

After watching your presentation I assume I should first generate a basic SVG of my image, Than run it through your refine_svg.py tool. Do you have any suggestions for the generation of the initial SVG?

proevgenii commented 2 years ago

Did you find any ways to create initial SVG?

After watching your presentation I assume I should first generate a basic SVG of my image, Than run it through your refine_svg.py tool. Do you have any suggestions for the generation of the initial SVG?

CPSuperstore commented 5 months ago

I was able to get some pretty good results using this website for the initial SVG https://picsvg.com/

The website itself does an okay job and only creates black polygons on a transparent background, but the refine_svg script is able to use this as a starting point and will eventually add the color after enough iterations (in my case it took about 100 iterations for the color to start to appear)