kingnobro / IconShop

(Siggraph Asia 2023) Code of "IconShop: Text-Guided Vector Icon Synthesis with Autoregressive Transformers"
32 stars 8 forks source link

data preprocess #1

Closed yael-vinker closed 1 month ago

yael-vinker commented 6 months ago

Hi, nice work! I downloaded your data following the instructions. However, it seems like the preprocessed data is not structured as a path sequence. For example if I open "" this is the text file:

\n \n

image

As can be seen, the SVG is constructed weirdly, without paths. Did you use this data for training? or did you apply some additional preprocess to FIGR8? Thanks

kingnobro commented 6 months ago

Hello. SVG data in FIGR8 can contain various numbers of paths. The SVG you referenced contains only one path, but includes several 'Move' commands to draw the windows and the door. Why are there numerous 'Move' commands in the same path? They are used to create 'fill' properties. More information can be found here: https://oreillymedia.github.io/Using_SVG/extras/ch06-fill-rule.html

To answer your question, since this SVG has only one path, we use this data for training. However, many SVGs contain multiple paths.