[HN Gopher] Im2Vec: Synthesizing Vector Graphics Without Vector ...
       ___________________________________________________________________
        
       Im2Vec: Synthesizing Vector Graphics Without Vector Supervision
        
       Author : tomduncalf
       Score  : 83 points
       Date   : 2021-03-15 08:43 UTC (14 hours ago)
        
 (HTM) web link (arxiv.org)
 (TXT) w3m dump (arxiv.org)
        
       | MaxBarraclough wrote:
       | Related work from 2008: _Mona Lisa in 50 polygons, using a
       | genetic algorithm_.[0][1] Sadly I think they refused to release
       | their source, but I believe others have re-implemented it.
       | 
       | [0] https://news.ycombinator.com/item?id=4912964
       | 
       | [1] https://rogerjohansson.blog/2008/12/07/genetic-
       | programming-e...
        
         | djmips wrote:
         | For example. Dave Hoskins (shadertoy) To get the triangle look
         | comment out #define ADD_DITHER and press the Compile (play)
         | button. https://www.shadertoy.com/view/MsX3WH
        
       | jarym wrote:
       | > Source code, datasets and more results are available at
       | http://geometry.cs.ucl.ac.uk/projects/2020/Im2Vec/.
       | 
       | When I visit that URL all I get currently is the PDF of the
       | paper?
        
         | thijser wrote:
         | Seems they got the wrong URL,
         | http://geometry.cs.ucl.ac.uk/projects/2021/im2vec/ has more
         | info, also the link to a github repo:
         | https://github.com/preddy5/Im2Vec
        
       | frob wrote:
       | I was really hopping this was some chain of CV, NLP, and GANs to
       | implement word2vec but for images. I think I just found one of my
       | new side-projects for the year.
        
       | svantana wrote:
       | A few years back I had the idea to morph fonts using vector
       | graphic interpolation. Unfortunately it was a bit more
       | complicated than I had anticipated and as usual it was abandoned
       | in favor of newer, shinier projects. But it's still fun to play
       | around with:
       | 
       | https://heartofnoise.com/fontmix/
        
         | Lichtso wrote:
         | This is a standard feature of modern (variable) fonts [0]
         | 
         | However, they are limited to linear interpolation of the
         | control point polygon, IIRC.
         | 
         | If you want arbitrary morphing (of the actual curve) you might
         | want to look into implicit curves [1] represented in geometric
         | algebra [2]. Here [3] is an example of it.
         | 
         | [0] https://v-fonts.com/
         | 
         | [1] https://en.wikipedia.org/wiki/Implicit_curve
         | 
         | [2] https://en.wikipedia.org/wiki/Geometric_algebra
         | 
         | [3]
         | https://enkimute.github.io/ganja.js/examples/coffeeshop.html...
        
           | svantana wrote:
           | That's all great stuff, but my idea was rather to explore the
           | latent space inbetween existing fonts, so to speak. V-fonts
           | are nice but very limited. Implicit curves are cool but I
           | don't see how they could represent existing font data?
        
             | Lichtso wrote:
             | >> the latent space in between existing fonts
             | 
             | Packing multiple different fonts into one parametrizable
             | one is the inverse of using one parametrizable font to
             | generate multiple different fonts, right?
             | 
             | >> V-fonts are nice but very limited
             | 
             | As I already mentioned, therefore I agree.
             | 
             | >> Implicit curves are cool but I don't see how they could
             | represent existing font data?
             | 
             | It might not be obvious from the wikipedia page, but
             | implicit curves are not a class of curves but a different
             | way to formalize them (as opposed to parametric curves). So
             | you can think of / deal with the bezier curve segments
             | either as parametric curves or as implicit curves.
        
       | [deleted]
        
       | The_rationalist wrote:
       | So the code has never been published? Edit: seems to be here
       | https://github.com/preddy5/Im2Vec
        
       | ArtWomb wrote:
       | Wish I had the research budget to work on the intersection of SVG
       | and ML. I feel there is a rich vein awaiting discovery apart from
       | the semantic stuff. Compact, efficient machine representations
       | that consume 10x less memory for large SVG images, for example.
        
         | ex3ndr wrote:
         | Isn't this like a solved problem for ages?
        
       | djoldman wrote:
       | https://github.com/preddy5/Im2Vec
        
       | nerdponx wrote:
       | _differentiable rasterization pipeline_
       | 
       | That's really damn cool.
        
         | mmastrac wrote:
         | This is a dumb question, I'm sure:
         | 
         | Does the loss function have to be a function of the derivative
         | somehow? Or does being differentiable just allow gradient
         | descent learning to work?
        
       ___________________________________________________________________
       (page generated 2021-03-15 23:02 UTC)