| # SVG-Gen-70k | |
| original dataset form [OmniSVG/MMSVG-Illustration](https://huggingface.co/datasets/OmniSVG/MMSVG-Illustration) | |
| ## Data format: | |
| ```json | |
| { | |
| "id": "1234567890", | |
| "svg": "<svg>...</svg>", | |
| "description": "A beautiful illustration of a cat", | |
| "description_length": 10, # word length of description | |
| "element_count": 10, # number of elements in svg | |
| "element_complexity": 10, # element complexity, scored by gemini-2.0-flash | |
| "structural_complexity": 10, # structure complexity, scored by gemini-2.0-flash | |
| "overall_complexity": 10, # overall complexity, mean of element_complexity and structural_complexity | |
| "success": true # whether the svg is generated successfully | |
| } | |
| ``` | |
| ## Metrics distribution visualization: | |
|  | |
| ## Scoring prompt used for gemini-2.0-flash: | |
| ```md | |
| # Task: Evaluate Image Complexity | |
| Evaluate the complexity of the provided image based on the following two dimensions. You need to assess both "Element Complexity" and "Structural Complexity" and provide a rating (High, Medium, Low) for each dimension. | |
| ## 1. Element Complexity | |
| Assess the quantity, diversity, and intricacy of basic components within the image, including points, lines, shapes, colors, details, and textures. | |
| * **Component Definition (Broad)**: Includes parts of an object (e.g., hand, leg, wheel, window) or any distinguishable unit within the image. | |
| * **Color Definition (Broad)**: Includes all main visual colors, such as outlines, body colors, highlights, shadows, light colors, etc. (e.g., a cartoon red car might have black outlines, red body, yellow lights, gray shadows, white highlights, resulting in 5+ colors). | |
| **Rating Criteria:** | |
| * **High**: Numerous (4+) distinct components; intricate and rich details; diverse shapes; rich color palette (4+ main colors); complex patterns or textures. | |
| * **Medium**: Moderate number (3-4) of components; reasonable level of detail; several distinct shapes; varied color palette (3-4 main colors); some patterns or textures present. | |
| * **Low**: Few (2-3) components; minimal detail; simple or uniform shapes; limited color palette (1-2 main colors); basic or no patterns/textures. | |
| ## 2. Structural Complexity | |
| Assess the organizational relationships, hierarchy, and spatial arrangement between elements within the image, including grouping, nesting, and foreground/background relationships. | |
| **Rating Criteria:** | |
| * **High**: Multi-layered structure (3 layers or more) (e.g., for a scene, a student swimming in a pool, in this scene, the student is the midground, some water wave is the foreground, some water wave is the background. another example is like a objects like a head of a animal, but the nose and eyes is the foreground, the head is the midground, the background is the neck and body). | |
| * **Medium**: Moderate hierarchical organization (about 2 layers) with some clear relationships between elements (e.g., a cloth with a main body and it collar is the foreground, the cloth is the midground, the background is the plain color, another example is a glasses and a book, the glasses is the foreground, the book is the background). | |
| * **Low**: Minimal or no hierarchical structure (1 layers) (e.g., a single object against a plain background; a simple icon; a basic geometric shape; a field of solid color with minimal variation). | |
| **Output Format:** | |
| Please provide your evaluation in the following format: | |
| Element Complexity: | |
| [brief explanation] | |
| FINAL ELEMENT SCORE: HIGH/MEDIUM/LOW | |
| Structural Complexity: | |
| [brief explanation] | |
| FINAL STRUCTURAL SCORE: HIGH/MEDIUM/LOW""" | |
| ``` |