Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

D2C Benchmark

This repository contains a Design-to-Code (D2C) benchmark dataset and an agent scaffold for generating React code from visual design inputs.

Contents

  • d2cAnData/index.json lists all benchmark tasks.
  • d2cAnData/ast/ contains structured AST JSON files for each design.
  • d2cAnData/images/ contains the corresponding reference images.
  • prompts/ contains Chinese and English prompt templates for code generation, refinement, and reasoning.
  • agent.py defines single-task and batch agent classes for iterative React generation and visual feedback evaluation.

Dataset Format

Each item in d2cAnData/index.json has a task id and relative paths to its AST and reference image:

{
  "taskId": 9418,
  "ast": "ast/9418.json",
  "image": "images/9418.png"
}

The repository currently includes 204 paired AST and image examples.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages