Founder here. As a front end developer, I turn design files into front-end code regularly. But it's a repetitive and demotivating task. It takes time, lots of meetings and boring back and forth questions. I want to change that. So I tried to automate this process. I trained a deep learning (DL) model to visually understand what elements are in a webpage (e.g. input, button, nav, etc) and build the front-end boiler pl…
Interesting idea but how maintainable is the code? I've used a few tools over the years that automatically generate code, mostly in C, but I've usually had to rewrite it as it never fits in with any decent coding standard
Show HN: I trained a deep learning model to build sites for me
51–60 of 128 posts
Re: Show HN: I trained a deep learning model to build sites for me
#52I’m sorry but this feels really hand-wavy to me. What did you feed your model for it to learn how to build vuejs sites? Vuejs template language is total chaos if you haven’t put in quite a bit of time with vue before, there are 2 or 3 ways to do everything. I am having trouble believing this was auto-generated from a deeply learned model. How do you write css, are you writing sass, vue inline styles, or something van…
Trying to answer all your questions:
- Our models learnt website's components visually (e.g. what is a navbar, an input, a button, etc)
- The output is a .zip file with the .html files and directories for css, js and img
- All Vue components can be found in main.js inside the js directory
- Vue components are built when 'duplication' is recognized (e.g. a sequence of cards or several links for a navbar). Nothing fancy
- CSS is vanilla, trying to ditch as many inline style as possible (working on it as we speak :) )
- All SVGs are imported with the img element.
Let me know if you have more great questions.
Re: Show HN: I trained a deep learning model to build sites for me
#53Re: Show HN: I trained a deep learning model to build sites for me
#54Earlier quoted context omitted.
It takes time, lots of meetings and boring back and forth questions. I want to change that. So I tried to automate this process. The reason for all the meetings and questions is that the designs you're working from are ambiguous, and you don't really have enough information to turn the design files in to working code. I can't quite see how a deep learning model solves that problem. By the sounds of it you've automate…
Depends on who he's meeting with and what industry. If it's an ad/service company where the design process is controlled by project managers or the clients... then I totally see where he's coming from in terms of meetings being a drag
If anything, by automating the process of producing code you're going to leave front end developers with nothing but meetings because the rest of the job is going to become a matter of pushing an AI-powered button. They won't thank you for that.
Re: Show HN: I trained a deep learning model to build sites for me
#55Re: Show HN: I trained a deep learning model to build sites for me
#56Is the home page itself built with this? Can you share the input file and an estimate on how long it took to work with the output to make it production ready?
Regarding the time for the optimization of the output, we are estimating ~20/30 minutes per page. It could be very faraway from the reality or pretty close, not sure yet.
Re: Show HN: I trained a deep learning model to build sites for me
#57[1] Pix2Code: https://arxiv.org/abs/1705.07962
[2] Sketch2Code: https://airbnb.design/sketching-interfaces/
[3] ScreenShot2Code: https://blog.floydhub.com/turning-design-mockups-into-code-w...
Re: Show HN: I trained a deep learning model to build sites for me
#58There's a useless vertical scrollbar on desktop.
Is causing it and not needed.
Re: Show HN: I trained a deep learning model to build sites for me
#59Surprised it’s Vue and not React. Vue is great, but there’s a lot of activity in the Sketch React space, for example AirBnb’s Lona [0]. This could fit in nicely. [0] https://github.com/airbnb/Lona
You might be thinking about react-sketchapp[1] or SharpieClassifier [2]
(I built both :P)
[1] https://airbnb.design/painting-with-code/ [2] https://airbnb.design/sketching-interfaces/
Re: Show HN: I trained a deep learning model to build sites for me
#60It's really great to see more and more companies emerging in the market from these initial ideas/PoC: [1] Pix2Code: https://arxiv.org/abs/1705.07962 [2] Sketch2Code: https://airbnb.design/sketching-interfaces/ [3] ScreenShot2Code: https://blog.floydhub.com/turning-design-mockups-into-code-w...
Aside: I actually built react-sketchapp as a roundabout way of being able to build more interesting AI plugins for Sketch.