Vipitis commited on
Commit
39120f8
·
verified ·
1 Parent(s): 274eb4d

add information

Browse files
Files changed (1) hide show
  1. README.md +37 -4
README.md CHANGED
@@ -40,14 +40,47 @@ configs:
40
  - split: test
41
  path: data/test-*
42
  repository: https://github.com/Vipitis/shadertoys-dataset
 
43
  ---
44
 
45
- ### experiements
46
  repository: https://github.com/Vipitis/shadertoys-dataset
 
 
 
 
47
 
48
- not meant to be used by anyone else just yet - not guarantee to keep this public or even static.... but I need to run a lot of experiemtns on different machines so it's public for a bit.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
  ## revisions
51
- v0.3 contains 394 functions gathers from shaders20k (years 2013-2021) and the Shadertoy.com API (years 2022-2023). All programs went through a assemble of filters. Then parsed to functions and additional filters were applied.
 
 
52
  All functions are run with wgpu-shadertoy using the wgpu-py PR branch that updates to wgpu-native 22.1 [ref](https://github.com/pygfx/wgpu-py/pull/547), and then confirmed to be needed (it errors when the funciton is omitted).
53
- the columns `model_inp` contains the comment just before the function as well as the header.
 
 
 
 
 
 
 
40
  - split: test
41
  path: data/test-*
42
  repository: https://github.com/Vipitis/shadertoys-dataset
43
+ license: other
44
  ---
45
 
46
+ ## Links
47
  repository: https://github.com/Vipitis/shadertoys-dataset
48
+ benchmark task: https://github.com/bigcode-project/bigcode-evaluation-harness/pull/173
49
+ leaderboard/demo/metric: https://huggingface.co/spaces/Vipitis/shadermatch
50
+ results dataset: https://huggingface.co/datasets/Vipitis/Shadereval-results
51
+ runs dataset (gated): https://huggingface.co/datasets/Vipitis/Shadereval-runs
52
 
53
+ ## Dataset description
54
+ 467 functions as well as their reference programs, from [Shadertoy.com](https://www.shadertoy.com/about). Sourced from the [shaders21k dataset](https://github.com/mbaradad/shaders21k), as well as the public API (for years 2022 and 2023).
55
+
56
+ Annotated with the following fields:
57
+ - id (string): The unique 6 character identifier of the shader program, set by the website when first saving your shader program. To get the source of any shader program can be accessed it via the url `https://www.shadertoy.com/view/<id>`
58
+ - author (string): Unige username of the shader program author.
59
+ - date (timestamp[ns]) UNIX-timestamp of when this program was first shadered (saved as non private).
60
+ - image_coded (string): GLSL-shaderder code of the Image-renderpass.
61
+ - license (string): SPDX license identifier (via [scancode-toolkit](https://github.com/aboutcode-org/scancode-toolkit/releases/tag/v32.2.1))
62
+ - func_bytes (5tuple(int)): byte indices for where comment starts, ends, header ends, docstring ends, function ends. Parsed with [tree-sitter-glsl](https://github.com/tree-sitter-grammars/tree-sitter-glsl/releases/tag/v0.1.9)
63
+ - functions (list(5tuple(int))): func_bytes for all functions in this program.
64
+ - comment (string): author written code comments immediately before the funciton header
65
+ - header (string): function header and initial `{`
66
+ - body (string): function body
67
+ - model_inp (string): comment+header, used for the function completion benchmark
68
+ - function_frequency (int): occurances of this function (header+body) in the unfiltered dataset of 202k functions
69
+ - header_frequency (int): occurances of this header in the unfiltered dataset of 202k functions
70
+
71
+
72
+ ## Usage
73
+ Exclusively used for a Function Completion benchmark, using the `model_inp` field and evaluated using the shadermatch metric.
74
 
75
  ## revisions
76
+ these are historic revisions used for steps during the development
77
+ ### [v0.3](https://huggingface.co/datasets/Vipitis/Shadereval-inputs/tree/0.3)
78
+ contains 394 functions gathers from shaders20k (years 2013-2021) and the Shadertoy.com API (years 2022-2023). All programs went through a assemble of filters. Then parsed to functions and additional filters were applied.
79
  All functions are run with wgpu-shadertoy using the wgpu-py PR branch that updates to wgpu-native 22.1 [ref](https://github.com/pygfx/wgpu-py/pull/547), and then confirmed to be needed (it errors when the funciton is omitted).
80
+ the columns `model_inp` contains the comment just before the function as well as the header.
81
+ ### [v0.2](https://huggingface.co/datasets/Vipitis/Shadereval-inputs/tree/0.2)
82
+ 257 functions from shaders20k through various filters ref run with wgpu-py 0.16.0 and wgpu-shadertoy on this commit. Used for input experiments.
83
+
84
+
85
+ # LICENSE information
86
+ please look at the `license` column in each row for an SPDX license tag of that individual program. You should also see the exact license text at the beginning of `image_code` as a comment.