text stringlengths 66 672k | description stringlengths 9 90 | input stringlengths 1 82 | output stringlengths 242 672k ⌀ | png_processed bool 2
classes | png_data unknown | caption stringlengths 6 229 ⌀ |
|---|---|---|---|---|---|---|
<s>[INST] Icon of Letter Lowercase Square T here are the inputs Letter Lowercase Square T [/INST] \n <?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><defs><sty... | Icon of Letter Lowercase Square T | Letter Lowercase Square T | <?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><defs><style>.a{fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;}</style></defs><path class... | true | [
137,
80,
78,
71,
13,
10,
26,
10,
0,
0,
0,
13,
73,
72,
68,
82,
0,
0,
3,
32,
0,
0,
3,
32,
8,
6,
0,
0,
0,
219,
112,
6,
104,
0,
0,
0,
6,
98,
75,
71,
68,
0,
255,
0,
255,
0,
255,
160,
189,
167,
147,
0,
0,
29,
6,
... | a black background with a white and red flower |
<s>[INST] Icon of Gui Sort Num Asc here are the inputs Gui Sort Num Asc [/INST] \n <?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg fill="#000000" width="800px" height="800px" viewBox="0 0 14 14" role="img" focusable="false" aria-hidden="true" x... | Icon of Gui Sort Num Asc | Gui Sort Num Asc | <?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg fill="#000000" width="800px" height="800px" viewBox="0 0 14 14" role="img" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><path fill="red" d="M9.38421048 1.00000007v8.8421... | true | [
137,
80,
78,
71,
13,
10,
26,
10,
0,
0,
0,
13,
73,
72,
68,
82,
0,
0,
3,
32,
0,
0,
3,
32,
8,
6,
0,
0,
0,
219,
112,
6,
104,
0,
0,
0,
6,
98,
75,
71,
68,
0,
255,
0,
255,
0,
255,
160,
189,
167,
147,
0,
0,
32,
0,
... | a red arrow pointing up to the left |
<s>[INST] Icon of Hay Fever 1 here are the inputs Hay Fever 1 [/INST] \n <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg height="800px" wid... | Icon of Hay Fever 1 | Hay Fever 1 | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg height="800px" width="800px" version="1.1" id="_x32_" xmlns="http://www.w3.org/2000/svg" xm... | true | [
137,
80,
78,
71,
13,
10,
26,
10,
0,
0,
0,
13,
73,
72,
68,
82,
0,
0,
3,
32,
0,
0,
3,
32,
8,
6,
0,
0,
0,
219,
112,
6,
104,
0,
0,
0,
6,
98,
75,
71,
68,
0,
255,
0,
255,
0,
255,
160,
189,
167,
147,
0,
0,
32,
0,
... | a black background with a white and red flower |
<s>[INST] Icon of Point On Map here are the inputs Point On Map [/INST] \n <?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M18 8L18.9487... | Icon of Point On Map | Point On Map | <?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M18 8L18.9487 8.31623C19.9387 8.64624 20.4337 8.81124 20.7169 9.20407C21 9.5969 21 10.11... | true | [
137,
80,
78,
71,
13,
10,
26,
10,
0,
0,
0,
13,
73,
72,
68,
82,
0,
0,
3,
32,
0,
0,
3,
32,
8,
6,
0,
0,
0,
219,
112,
6,
104,
0,
0,
0,
6,
98,
75,
71,
68,
0,
255,
0,
255,
0,
255,
160,
189,
167,
147,
0,
0,
32,
0,
... | a camera icon |
<s>[INST] Icon of Short Message here are the inputs Short Message [/INST] \n <?xml version="1.0" encoding="utf-8"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 1024 1024" class="icon" version="1.1" xmlns="http://www.w3.org/2000/svg">... | Icon of Short Message | Short Message | <?xml version="1.0" encoding="utf-8"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 1024 1024" class="icon" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M511.585326 660.83709L75.311885 408.257891l22.414898-38.714128 413.8... | true | [
137,
80,
78,
71,
13,
10,
26,
10,
0,
0,
0,
13,
73,
72,
68,
82,
0,
0,
3,
32,
0,
0,
3,
32,
8,
6,
0,
0,
0,
219,
112,
6,
104,
0,
0,
0,
6,
98,
75,
71,
68,
0,
255,
0,
255,
0,
255,
160,
189,
167,
147,
0,
0,
32,
0,
... | an email envelope icon |
"<s>[INST] Icon of Indonesian Rupiah Indonesian Rupiah Currency Indonesia Money here are the inputs (...TRUNCATED) | Icon of Indonesian Rupiah Indonesian Rupiah Currency Indonesia Money | Indonesian Rupiah Indonesian Rupiah Currency Indonesia Money | "<?xml version=\"1.0\" ?>\n\r<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer (...TRUNCATED) | true | "iVBORw0KGgoAAAANSUhEUgAAAyAAAAMgCAYAAADbcAZoAAAABmJLR0QA/wD/AP+gvaeTAAAgAElEQVR4nOzdd7gdVbn48e/JSQ+(...TRUNCATED) | a black background with a white and red flower |
"<s>[INST] Icon of Call Dot here are the inputs Call Dot [/INST] \\n <?xml version=\"1.0\" encoding=(...TRUNCATED) | Icon of Call Dot | Call Dot | "<?xml version=\"1.0\" encoding=\"utf-8\"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: S(...TRUNCATED) | true | "iVBORw0KGgoAAAANSUhEUgAAAyAAAAMgCAYAAADbcAZoAAAABmJLR0QA/wD/AP+gvaeTAAAgAElEQVR4nOzdd7QmVZnv8e/p3OS(...TRUNCATED) | a black background with a white and red flower |
"<s>[INST] Icon of Electronic Wapourizer here are the inputs Electronic Wapourizer [/INST] \\n <?xml(...TRUNCATED) | Icon of Electronic Wapourizer | Electronic Wapourizer | "<?xml version=\"1.0\" ?>\n\r<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer (...TRUNCATED) | true | "iVBORw0KGgoAAAANSUhEUgAAAyAAAAMgCAYAAADbcAZoAAAABmJLR0QA/wD/AP+gvaeTAAAgAElEQVR4nOzdebQc12Hf+d+t6n4(...TRUNCATED) | a pencil with a black handle |
"<s>[INST] Icon of Ipad Tablet Gaming Mobile Casino Seven here are the inputs Ipad Tablet Gaming Mob(...TRUNCATED) | Icon of Ipad Tablet Gaming Mobile Casino Seven | Ipad Tablet Gaming Mobile Casino Seven | "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n\r\n<!-- Uploaded to: SVG Repo, www.svgrepo.com, Gene(...TRUNCATED) | true | "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAABzklEQVRYhe2XTy8DURTFf4QihFg(...TRUNCATED) | a black background with a white and red flower |
"<s>[INST] Icon of Bathtub 3 here are the inputs Bathtub 3 [/INST] \\n <?xml version=\"1.0\" encodin(...TRUNCATED) | Icon of Bathtub 3 | Bathtub 3 | "<?xml version=\"1.0\" encoding=\"utf-8\"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: S(...TRUNCATED) | true | "iVBORw0KGgoAAAANSUhEUgAAAyAAAAMgCAYAAADbcAZoAAAABmJLR0QA/wD/AP+gvaeTAAAgAElEQVR4nOzdeZQmdX0v/nf1NAz(...TRUNCATED) | the logo for the new company |
End of preview. Expand in Data Studio
SVG to PNG Rendered Dataset
Dataset Summary
This dataset is a processed version of the svgen-500k-instruct dataset, where SVG images have been converted to PNG format for easier consumption in computer vision and machine learning pipelines. Each successfully converted image maintains the original SVG's visual representation while providing a standardized raster format.
Data Fields
caption: Image captions generated using Salesforce's BLIP modelpng_processed: Boolean flag indicating whether the conversion was successfulpng_data: Base64 encoded PNG data (for successful conversions) or None (for failed conversions)- All original fields from source dataset are preserved
Dataset Creation
Source Data
- Original Dataset: svgen-500k-instruct
- Processing Script: will upload later
Processing
- SVGs are converted to PNGs using CairoSVG
- Each PNG is validated to ensure image integrity
- Failed conversions are tracked but maintain dataset alignment
- Parallel processing is used for efficient conversion
- Full binary PNG data is stored as base64 encoded strings for successful conversions
- Image captions are generated using Salesforce's BLIP model
Technical Details
- Image Format: PNG
- Color Space: RGBA
- Conversion Tool: CairoSVG
- Validation: PIL/Pillow image verification
- Data Storage: Base64 encoded format within HuggingFace Dataset structure
- Caption Generation: Salesforce BLIP model
Usage
Loading the Dataset
from datasets import load_dataset
dataset = load_dataset("thesantatitan/svg-rendered")
Accessing Images
# Check if conversion was successful
if dataset[0]['png_processed']:
# Load PNG data into PIL Image
from PIL import Image
import io
import base64
# Decode base64 data
png_bytes = base64.b64decode(dataset[0]['png_data'])
image = Image.open(io.BytesIO(png_bytes))
# Access the caption
caption = dataset[0]['caption']
print(f"Image caption: {caption}")
Limitations and Considerations
- Not all SVGs may convert successfully due to complexity or formatting issues
- PNG format increases storage requirements compared to original SVGs
- Some SVG features (like animations) are not preserved in PNG conversion
- Dataset size varies based on conversion success rate
- Generated captions may not always accurately represent the image content
Additional Information
Dataset Size
- Original Dataset Size: 500k examples
- Storage Requirements: Significantly larger than original due to PNG binary storage
Citation
If you use this dataset, please cite both this dataset and the original svgen-500k-instruct dataset:
@misc{svg-rendered,
author = {[Your Name]},
title = {SVG to PNG Rendered Dataset},
year = {2024},
publisher = {HuggingFace},
url = {https://huggingface.co/datasets/thesantatitan/svg-rendered}
}
Feedback and Contributions
For issues, suggestions, or contributions, please visit the dataset repository on HuggingFace.
Acknowledgments
- Original dataset creators: umuthopeyildirim
- CairoSVG library for SVG conversion
- HuggingFace for dataset hosting
- Salesforce for the BLIP image captioning model
- Downloads last month
- 6