ximinng / PyTorch-SVGRender

SVG Differentiable Rendering: Generating vector graphics using neural networks. Support: text-to-SVG, Image-to-SVG, SVG Editing.
https://ximinng.github.io/PyTorch-SVGRender-project/
Mozilla Public License 2.0
111 stars 7 forks source link

How to avoid redundant vector lines when using DiffVG? #19

Closed xuanlongORZ closed 4 months ago

xuanlongORZ commented 4 months ago

Hi ! Thanks for the great work ! I'm trying to vetorize my lineart using DiffSVG with default settings, but I found that in the final .svg, there are many initial vector lines that are useless (in the .png final output, they are strangely not very visible). I wonder if this is due to the wrong estimation of the number of the initialization vector lines (I'm pretty new to this area, forgive me if this is a stupid question :D ). Is this kind of problem unavoidable?

ximinng commented 4 months ago

Hello, There are invisible paths (i.e low opacity) because you are using too many paths. Adjusting the num_paths hyperparameter will give better results. best regards, ximing