Git Product home page Git Product logo

Comments (5)

riven314 avatar riven314 commented on August 29, 2024 3

"Beautification" is a good idea! I have 2 ideas in my mind:

  1. transferring one emoji from one style to another (e.g. author style, color ... etc.)
  2. Treating a layout as a SVG object (layout is a composition of different shapes), I wanna transform a layout from one kind to another. (having identical shapes, simply apply geometric transformation on different shapes) I wanna see if the model could capture the spatial pattern. And by the time interpolation is applied between two samples, could I see a smooth transition/ nice disentanglement between shapes.

from deepsvg.

alexandre01 avatar alexandre01 commented on August 29, 2024 1

Hey Alex,
Yes for sure, we even had this kind of application in mind while developing DeepSVG. Instead of training for input reconstruction, just replace the output target with the desired translation.

One such example could be SVG "beautification". Given a dataset of clean SVGs, randomly jitter it and feed it as input to the model, whose goal is now to reconstruct the clean SVG. This could maybe be used by graphic designers to automatically clean their vector drawings...

What kind of SVG translation do you have in mind?

from deepsvg.

alexandre01 avatar alexandre01 commented on August 29, 2024

Great!

  • While 1. sounds potentially feasible, I see the problem that you won't have enough training data and the model will just overfit without capacity to generalize.
    1. sounds like a great idea! On our side, we imagined, as potential applications/extensions to DeepSVG, doing HTML/CSS generation, treating the different 'div' sections as square boxes. But what type described has even the advantage that you can generate as much data as you want. And I'm pretty sure this Transformer-based architecture is capable of finding these spatial relationships :)

from deepsvg.

riven314 avatar riven314 commented on August 29, 2024

Thanks for your feedback! I am actually in a brain-storming stage, thinking which direction is more rewarding and fast to iterate haha

  • For 1, I also foresee limited data is an obstacle, especially an author usually only created a limited amount of emojis. Do you think a generic transfer learning could apply in this model? (e.g. fine-tuning the decoder part with few examples)
  • For 2, this is a model capacity I am really interested in because such capacity could enable the model to be applied in many areas such as layout design! To quickly validate the concept, I think RICO (webpage layout dataset) is a good dataset for that. I am thinking to create a pseudo pair (artificially transform each webpage layout to a particular form) in order to convert the dataset to one for translation problem. To further extend that, the model could also take into account the image for each placeholder. Do you think the current model could be able to encode shape + its enclosed image?

from deepsvg.

tsaxena avatar tsaxena commented on August 29, 2024

This is interesting conversation. @riven314 and @alexandre01 . I am actually using Rico dataset currently but the focus of the work is classification. @alexandre01 do you think this work can be easily used for retraining on UI component SVGs to classify?

from deepsvg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.