• This repository has been archived on 03/Apr/2023
  • Stars
    star
    100
  • Rank 340,703 (Top 7 %)
  • Language
    Jupyter Notebook
  • Created over 6 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

a simple model that implemented sketch to code

Sketch2code

Preview

Generating HTML Code from a hand-drawn wireframe

a simple deep learning model that takes hand-drawn web mockups and converts them into working HTML code. It uses an image captioning architecture to generate its HTML markup from hand-drawn website wireframes.

Heavily inspired by Ashwin Kumar's blog post, For more information, check out his post: Automating front-end development with deep learning

Model architecture

model

Download the data

bash get_data.sh

Docker demo settings

docker pull mzbac/sketch2code
docker run -p 5000:5000 mzbac/sketch2code

browser to localhost:5000

Load pre-trained weights

encoder = torch.load('model_weights/encoder_resnet34_0.061650436371564865.pt')
decoder = torch.load('model_weights/decoder_resnet34_0.061650436371564865.pt')

Pre-trained weight preview:

loss_0.061

Pre-trained model's BLEU score

  • 0.974

More Repositories

1

qlora-fine-tune

Python
99
star
2

wizardCoder-vsc

Visual Studio Code extension for WizardCoder
TypeScript
54
star
3

AutoGPTQ-API

Host the GPTQ model using AutoGPTQ as an API that is compatible with text generation UI API.
Python
36
star
4

GPTQ-for-LLaMa-API

Provide a way to use the GPT-QLLama model as an API
Python
28
star
5

chatgpt-plus-api-client

Node client to making API calls to ChatGPT.
TypeScript
23
star
6

gptq-cuda-api

Python
13
star
7

llama2-fine-tune

Scripts for fine-tuning Llama2 via SFT and DPO.
Python
11
star
8

qlora-inference-multi-gpu

Python
11
star
9

codeguard-gpt-action

TypeScript
9
star
10

flux.1.app

Swift
7
star
11

gpt3-linkedin

A Chrome extension integrated with the OpenAI API for LinkedIn web.
TypeScript
6
star
12

react-introjs

A small React wrapper for Intro.js
JavaScript
5
star
13

chatgpt-backup-extension

TypeScript
4
star
14

chrome-dev-tool-video-record-example

JavaScript
4
star
15

lora-llm-qa-g

This TypeScript CLI tool helps you generate question-answer pairs for input examples using OpenAI's GPT-3
TypeScript
4
star
16

sms

JavaScript
3
star
17

bilibili-downloader

A command-line tool to download videos from Bilibili in Node.js and TypeScript
TypeScript
2
star
18

react-glamorous-tooltip

React tooltip component
JavaScript
2
star
19

react-glamorous-tour

A Introjs looking, glamorous based react implementation.
JavaScript
2
star
20

image2dsl

This repository contains the implementation of an Image to DSL (Domain Specific Language) model. The model uses a pre-trained Vision Transformer (ViT) as an encoder to extract image features and a custom Transformer Decoder to generate DSL code from the extracted features.
Python
2
star
21

flux.swift.cli

1
star
22

chatgpt-vsc

ChatGPT integration for VSC
TypeScript
1
star
23

human-to-machine-date-translation

seq2seq translation with attention mechanism in pytorch
Jupyter Notebook
1
star