diffeval 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. diffeval/__init__.py +7 -0
  2. diffeval/__main__.py +6 -0
  3. diffeval/aggregate/__init__.py +1 -0
  4. diffeval/aggregate/mean.py +7 -0
  5. diffeval/aggregate/names.py +11 -0
  6. diffeval/aggregate/row.py +26 -0
  7. diffeval/aggregate/sample_std.py +9 -0
  8. diffeval/aggregate/series.py +22 -0
  9. diffeval/aggregate/table.py +8 -0
  10. diffeval/backends/__init__.py +4 -0
  11. diffeval/backends/diffusers/__init__.py +1 -0
  12. diffeval/backends/diffusers/attention_apply.py +16 -0
  13. diffeval/backends/diffusers/attention_eager.py +6 -0
  14. diffeval/backends/diffusers/attention_name.py +15 -0
  15. diffeval/backends/diffusers/attention_sdpa.py +6 -0
  16. diffeval/backends/diffusers/attention_xformers.py +5 -0
  17. diffeval/backends/diffusers/backend.py +29 -0
  18. diffeval/backends/diffusers/call_kwargs.py +15 -0
  19. diffeval/backends/diffusers/coerce_dtype.py +10 -0
  20. diffeval/backends/diffusers/describe.py +6 -0
  21. diffeval/backends/diffusers/dtype_name.py +23 -0
  22. diffeval/backends/diffusers/from_config.py +17 -0
  23. diffeval/backends/diffusers/generate.py +18 -0
  24. diffeval/backends/diffusers/kwargs_generator.py +6 -0
  25. diffeval/backends/diffusers/kwargs_prompt.py +11 -0
  26. diffeval/backends/diffusers/kwargs_sampling.py +18 -0
  27. diffeval/backends/diffusers/kwargs_size.py +18 -0
  28. diffeval/backends/diffusers/load_kwargs.py +10 -0
  29. diffeval/backends/diffusers/load_pipe.py +23 -0
  30. diffeval/backends/diffusers/missing_dep.py +10 -0
  31. diffeval/backends/diffusers/one_batch.py +11 -0
  32. diffeval/backends/diffusers/pick_device.py +13 -0
  33. diffeval/backends/diffusers/presets.py +8 -0
  34. diffeval/backends/diffusers/sampling.py +18 -0
  35. diffeval/backends/dummy/__init__.py +1 -0
  36. diffeval/backends/dummy/backend.py +29 -0
  37. diffeval/backends/dummy/box.py +9 -0
  38. diffeval/backends/dummy/colors.py +10 -0
  39. diffeval/backends/dummy/describe.py +18 -0
  40. diffeval/backends/dummy/draw.py +16 -0
  41. diffeval/backends/dummy/from_config.py +14 -0
  42. diffeval/backends/dummy/generate.py +17 -0
  43. diffeval/backends/dummy/render.py +18 -0
  44. diffeval/backends/noop_prepare.py +5 -0
  45. diffeval/backends/protocol.py +15 -0
  46. diffeval/bench/__init__.py +1 -0
  47. diffeval/bench/cmmd_check.py +20 -0
  48. diffeval/bench/cmmd_samples.py +15 -0
  49. diffeval/bench/coco30k_cli.py +23 -0
  50. diffeval/bench/coco30k_export.py +19 -0
  51. diffeval/bench/coco30k_files.py +16 -0
  52. diffeval/bench/coco30k_images.py +21 -0
  53. diffeval/bench/coco30k_suite.py +16 -0
  54. diffeval/bench/fetch.py +12 -0
  55. diffeval/bench/published.py +10 -0
  56. diffeval/bench/table_cli.py +16 -0
  57. diffeval/bench/table_row.py +24 -0
  58. diffeval/cli/__init__.py +1 -0
  59. diffeval/cli/command_list.py +13 -0
  60. diffeval/cli/command_run.py +25 -0
  61. diffeval/cli/config.py +14 -0
  62. diffeval/cli/csv_ints.py +8 -0
  63. diffeval/cli/csv_names.py +8 -0
  64. diffeval/cli/main.py +12 -0
  65. diffeval/cli/output_dir.py +12 -0
  66. diffeval/cli/parser.py +17 -0
  67. diffeval/cli/print_paths.py +12 -0
  68. diffeval/cli/print_registered.py +6 -0
  69. diffeval/cli/run_parser_eval.py +14 -0
  70. diffeval/cli/run_parser_model.py +13 -0
  71. diffeval/metrics/__init__.py +7 -0
  72. diffeval/metrics/clip/__init__.py +1 -0
  73. diffeval/metrics/clip/features.py +14 -0
  74. diffeval/metrics/clip/formula.py +6 -0
  75. diffeval/metrics/clip/load.py +17 -0
  76. diffeval/metrics/clip/metric.py +20 -0
  77. diffeval/metrics/clip/protocol.py +10 -0
  78. diffeval/metrics/clip/sample_image.py +10 -0
  79. diffeval/metrics/clip/score.py +25 -0
  80. diffeval/metrics/cmmd/__init__.py +1 -0
  81. diffeval/metrics/cmmd/embed_batch.py +26 -0
  82. diffeval/metrics/cmmd/embed_paths.py +30 -0
  83. diffeval/metrics/cmmd/metric.py +20 -0
  84. diffeval/metrics/cmmd/mmd.py +23 -0
  85. diffeval/metrics/cmmd/protocol.py +11 -0
  86. diffeval/metrics/cmmd/resize.py +17 -0
  87. diffeval/metrics/cmmd/score.py +24 -0
  88. diffeval/metrics/count_warning.py +7 -0
  89. diffeval/metrics/distribution/__init__.py +1 -0
  90. diffeval/metrics/distribution/call.py +24 -0
  91. diffeval/metrics/distribution/kwargs_folder.py +16 -0
  92. diffeval/metrics/distribution/kwargs_stats.py +8 -0
  93. diffeval/metrics/distribution/protocol.py +12 -0
  94. diffeval/metrics/distribution/seed_numpy.py +12 -0
  95. diffeval/metrics/fid/__init__.py +1 -0
  96. diffeval/metrics/fid/guard.py +13 -0
  97. diffeval/metrics/fid/metric.py +20 -0
  98. diffeval/metrics/geneval/__init__.py +1 -0
  99. diffeval/metrics/geneval/metric.py +22 -0
  100. diffeval/metrics/geneval/protocol.py +5 -0
  101. diffeval/metrics/geneval/tags.py +3 -0
  102. diffeval/metrics/images.py +12 -0
  103. diffeval/metrics/kid/__init__.py +1 -0
  104. diffeval/metrics/kid/guard.py +3 -0
  105. diffeval/metrics/kid/metric.py +20 -0
  106. diffeval/metrics/ok.py +9 -0
  107. diffeval/metrics/protocol.py +17 -0
  108. diffeval/metrics/skipped.py +10 -0
  109. diffeval/plugins.py +7 -0
  110. diffeval/registry/__init__.py +1 -0
  111. diffeval/registry/lookup.py +9 -0
  112. diffeval/registry/names.py +5 -0
  113. diffeval/registry/register.py +11 -0
  114. diffeval/registry/tables.py +5 -0
  115. diffeval/registry/unregister.py +5 -0
  116. diffeval/report/__init__.py +1 -0
  117. diffeval/report/console.py +18 -0
  118. diffeval/report/console_widths.py +5 -0
  119. diffeval/report/direction.py +7 -0
  120. diffeval/report/html_figure.py +9 -0
  121. diffeval/report/html_grid.py +19 -0
  122. diffeval/report/html_page.py +15 -0
  123. diffeval/report/html_row.py +12 -0
  124. diffeval/report/markdown.py +11 -0
  125. diffeval/report/markdown_row.py +10 -0
  126. diffeval/report/number.py +7 -0
  127. diffeval/report/templates/page.html +35 -0
  128. diffeval/runner/__init__.py +1 -0
  129. diffeval/runner/generate_save.py +19 -0
  130. diffeval/runner/metric_device.py +16 -0
  131. diffeval/runner/one_seed.py +20 -0
  132. diffeval/runner/options.py +23 -0
  133. diffeval/runner/payload.py +26 -0
  134. diffeval/runner/relpath.py +7 -0
  135. diffeval/runner/requests.py +7 -0
  136. diffeval/runner/run.py +24 -0
  137. diffeval/runner/safe_metric.py +14 -0
  138. diffeval/runner/save_png.py +8 -0
  139. diffeval/runner/seeds.py +23 -0
  140. diffeval/runner/write_json.py +11 -0
  141. diffeval/runner/write_reports.py +14 -0
  142. diffeval/system/__init__.py +1 -0
  143. diffeval/system/describe.py +10 -0
  144. diffeval/system/gpu.py +11 -0
  145. diffeval/system/gpu_cuda.py +9 -0
  146. diffeval/system/gpu_mps.py +8 -0
  147. diffeval/system/sdp_flags.py +15 -0
  148. diffeval/system/version_of.py +10 -0
  149. diffeval/system/versions.py +20 -0
  150. diffeval/tasks/__init__.py +3 -0
  151. diffeval/tasks/build_suite.py +7 -0
  152. diffeval/tasks/core.py +15 -0
  153. diffeval/tasks/errors.py +5 -0
  154. diffeval/tasks/fields_metrics.py +14 -0
  155. diffeval/tasks/fields_paths.py +25 -0
  156. diffeval/tasks/fields_prompts.py +15 -0
  157. diffeval/tasks/fields_seeds.py +14 -0
  158. diffeval/tasks/fields_size.py +12 -0
  159. diffeval/tasks/fields_text.py +13 -0
  160. diffeval/tasks/from_mapping.py +22 -0
  161. diffeval/tasks/load_bundled.py +9 -0
  162. diffeval/tasks/load_path.py +12 -0
  163. diffeval/tasks/one_prompt.py +17 -0
  164. diffeval/tasks/prompt_id.py +13 -0
  165. diffeval/tasks/read_yaml.py +14 -0
  166. diffeval/tasks/resolve.py +18 -0
  167. diffeval/tasks/suites/core.yaml +12 -0
  168. diffeval/tasks/suites/references/core/blue_sphere.png +0 -0
  169. diffeval/tasks/suites/references/core/green_triangle.png +0 -0
  170. diffeval/tasks/suites/references/core/red_cube.png +0 -0
  171. diffeval/tasks/suites/references/core/yellow_star.png +0 -0
  172. diffeval/types/__init__.py +1 -0
  173. diffeval/types/context.py +15 -0
  174. diffeval/types/prompt.py +10 -0
  175. diffeval/types/request.py +13 -0
  176. diffeval/types/result.py +14 -0
  177. diffeval/types/result_rules.py +13 -0
  178. diffeval/types/sample.py +15 -0
  179. diffeval/types/suite.py +21 -0
  180. diffeval-0.1.0.dist-info/METADATA +378 -0
  181. diffeval-0.1.0.dist-info/RECORD +185 -0
  182. diffeval-0.1.0.dist-info/WHEEL +5 -0
  183. diffeval-0.1.0.dist-info/entry_points.txt +6 -0
  184. diffeval-0.1.0.dist-info/licenses/LICENSE +190 -0
  185. diffeval-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,378 @@
1
+ Metadata-Version: 2.4
2
+ Name: diffeval
3
+ Version: 0.1.0
4
+ Summary: Evaluation harness for image and video diffusion models
5
+ Author: woletee
6
+ License-Expression: Apache-2.0
7
+ Keywords: diffusion,evaluation,benchmark,text-to-image,fid,kid,cmmd,clip-score
8
+ Classifier: Development Status :: 3 - Alpha
9
+ Classifier: Intended Audience :: Science/Research
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3 :: Only
12
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
13
+ Classifier: Topic :: Scientific/Engineering :: Image Recognition
14
+ Requires-Python: >=3.10
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: pyyaml
18
+ Requires-Dist: pillow
19
+ Requires-Dist: numpy
20
+ Provides-Extra: dev
21
+ Requires-Dist: pytest>=8; extra == "dev"
22
+ Provides-Extra: diffusers
23
+ Requires-Dist: torch; extra == "diffusers"
24
+ Requires-Dist: diffusers; extra == "diffusers"
25
+ Requires-Dist: transformers; extra == "diffusers"
26
+ Requires-Dist: accelerate; extra == "diffusers"
27
+ Requires-Dist: safetensors; extra == "diffusers"
28
+ Provides-Extra: metrics
29
+ Requires-Dist: torch; extra == "metrics"
30
+ Requires-Dist: transformers; extra == "metrics"
31
+ Requires-Dist: clean-fid; extra == "metrics"
32
+ Requires-Dist: scipy<1.18; extra == "metrics"
33
+ Provides-Extra: benchmarks
34
+ Requires-Dist: pyarrow; extra == "benchmarks"
35
+ Requires-Dist: huggingface_hub; extra == "benchmarks"
36
+ Provides-Extra: geneval
37
+ Provides-Extra: video
38
+ Dynamic: license-file
39
+
40
+ <div align="center">
41
+
42
+ <picture>
43
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/woletee/diffeval/main/docs/assets/logo-dark.svg">
44
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/woletee/diffeval/main/docs/assets/logo-light.svg">
45
+ <img alt="diffeval" src="https://raw.githubusercontent.com/woletee/diffeval/main/docs/assets/logo-light.svg" width="240">
46
+ </picture>
47
+
48
+ # diffeval: A Framework for Diffusion Model Evaluation
49
+
50
+ A fixed prompt and seed suite, scored the same way on every model.
51
+
52
+ [![CI](https://img.shields.io/github/actions/workflow/status/woletee/diffeval/ci.yml?style=flat&label=CI&colorA=000000&colorB=000000)](https://github.com/woletee/diffeval/actions/workflows/ci.yml)
53
+ [![Python](https://img.shields.io/badge/python-3.10%2B-000000?style=flat&colorA=000000&colorB=000000)](https://github.com/woletee/diffeval/blob/main/pyproject.toml)
54
+ [![License](https://img.shields.io/badge/license-Apache--2.0-000000?style=flat&colorA=000000&colorB=000000)](https://github.com/woletee/diffeval/blob/main/LICENSE)
55
+
56
+ <p>
57
+ <a href="#quickstart">Quickstart</a>
58
+ ·
59
+ <a href="#metrics">Metrics</a>
60
+ ·
61
+ <a href="#backends">Backends</a>
62
+ ·
63
+ <a href="#suites">Suites</a>
64
+ ·
65
+ <a href="#extending-diffeval">Extending</a>
66
+ ·
67
+ <a href="docs/DESIGN.md">Design</a>
68
+ </p>
69
+
70
+ </div>
71
+
72
+ diffeval is an evaluation harness for image and video diffusion models, in the same role [lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness) has for language models. You name a backend and a suite. The suite fixes the prompts, the seeds, and the resolution. For each seed the backend writes one image per prompt, every metric scores that seed, and the runner aggregates a mean and a sample standard deviation. The run writes a console table, `results.json`, `report.md`, and `report.html`.
73
+
74
+ Video scoring is later. This version scores images. The `video` extra installs no packages, and there is no `vbench` metric.
75
+
76
+ - **Pluggable.** Suites, metrics, and backends register by name. `diffeval list` and `diffeval run` look names up in `TASKS`, `METRICS`, and `BACKENDS`.
77
+ - **Light by default.** The base install is PyYAML, Pillow, and NumPy. Torch, Diffusers, and clean-fid stay in optional extras.
78
+ - **Honest scores.** A missing library or a missing reference is status `skipped`, with the reason stored on the row. The images stay on disk.
79
+ - **Traceable.** `results.json` uses `schema_version` 1. It stores the suite, `describe()`, package versions, the GPU when torch reports one, and `metric_protocols`.
80
+
81
+ > [!NOTE]
82
+ > diffeval publishes no benchmark numbers. The bundled `core` suite is a smoke check. The `diffusers` backend has not been validated on a GPU in this repository. Compare a score with a paper only after matching that paper's reference implementation and dataset.
83
+
84
+ ## Installation
85
+
86
+ diffeval requires Python 3.10 or newer.
87
+
88
+ ```bash
89
+ pip install diffeval
90
+ ```
91
+
92
+ Add extras in brackets, for example `pip install "diffeval[diffusers,metrics]"`. To work on the code, clone the repository and run `pip install -e ".[dev]"`.
93
+
94
+ That installs the CLI, the YAML loader, Pillow, and NumPy.
95
+
96
+ | Extra | Installs | Used for |
97
+ | --- | --- | --- |
98
+ | `diffusers` | torch, diffusers, transformers, accelerate, safetensors | the `diffusers` backend |
99
+ | `metrics` | torch, transformers, clean-fid, scipy<1.18 | `clip_score`, `cmmd`, `fid`, `kid` |
100
+ | `benchmarks` | pyarrow, huggingface_hub | `diffeval-coco30k-images` |
101
+ | `dev` | pytest | the tests |
102
+ | `geneval` | nothing | keeps the GenEval detector off the default install |
103
+ | `video` | nothing | keeps VBench off the default install |
104
+
105
+ ```bash
106
+ pip install -e ".[diffusers,metrics]"
107
+ pip install -e ".[dev]"
108
+ ```
109
+
110
+ The `geneval` metric returns `skipped`. The `video` extra does not install VBench.
111
+
112
+ ## Quickstart
113
+
114
+ Start with a CPU smoke run. The `dummy` backend draws deterministic RGB images, so the command downloads nothing.
115
+
116
+ ```bash
117
+ diffeval run --backend dummy --suite core
118
+ ```
119
+
120
+ If you omit both `--backend` and `--pipeline`, the backend is `dummy`. `--pipeline` without `--backend` selects `diffusers`.
121
+
122
+ Then a Diffusers model. Install the `diffusers` extra first. The command downloads weights. It has not been run in this repository, and CI does not run it. Without the extra, the process prints `install the diffusers extra: pip install 'diffeval[diffusers]'` and exits 2.
123
+
124
+ One smaller model has been run on a CPU. `stabilityai/sd-turbo` with `--steps 1 --guidance 0 --device cpu` generated all eight `core` images and scored `clip_score`, `cmmd`, `fid`, and `kid`, at about five seconds per image. That run says the backend and metrics work end to end. Its scores against the four `core` drawings are not quality numbers.
125
+
126
+ ```bash
127
+ diffeval run --pipeline stabilityai/sd-turbo --suite core --steps 1 --guidance 0 --device cpu
128
+ ```
129
+
130
+ ```bash
131
+ diffeval run --pipeline black-forest-labs/FLUX.1-schnell --suite core
132
+ ```
133
+
134
+ When `--steps` and `--guidance` are omitted, `black-forest-labs/FLUX.1-schnell` uses 4 steps and guidance 0. Any other model id leaves the pipeline defaults in place. A value passed on the CLI wins.
135
+
136
+ Each run writes a directory. The default is `outputs/<UTC timestamp>-<suite>-<backend>`. The timestamp looks like `20261025T153000Z`. Spaces and slashes in that label become underscores. The model id stays in `describe()`. The folder name ends with the backend, `dummy` or `diffusers`.
137
+
138
+ ```text
139
+ outputs/20261025T153000Z-core-dummy/
140
+ ├── images/
141
+ │ ├── seed_0/red_cube.png
142
+ │ └── seed_1/red_cube.png
143
+ ├── results.json
144
+ ├── report.md
145
+ └── report.html
146
+ ```
147
+
148
+ `core` has four prompts, so each seed directory holds four PNGs. Paths inside `results.json` are relative to the output directory, for example `images/seed_0/red_cube.png`.
149
+
150
+ The console table and `report.md` have one row per metric. Columns are metric, status, mean, std, per-seed, and direction. With only the base install, the metrics are `skipped`:
151
+
152
+ ```text
153
+ metric status mean std per-seed direction
154
+ clip_score skipped n/a n/a n/a,n/a higher
155
+ cmmd skipped n/a n/a n/a,n/a lower
156
+ fid skipped n/a n/a n/a,n/a lower
157
+ kid skipped n/a n/a n/a,n/a lower
158
+ ```
159
+
160
+ Mean is the arithmetic mean of seeds whose status is `ok`. Standard deviation is the sample standard deviation, `ddof=1`. It is null when fewer than two seeds succeeded, and the console prints that null as `n/a`. The row stores `std_ddof` as 1. `core` uses two seeds so a real metric can show a standard deviation.
161
+
162
+ `report.html` repeats the table and shows an image grid grouped by prompt, one figure per seed. Prompts are escaped. The page says to check scores against the published reference implementation and dataset, and it calls `core` a smoke suite.
163
+
164
+ Exit code 0 means the report was written. Exit code 2 means the suite, backend, or metric name was unknown, generation failed, the chosen backend's extra is missing, or `--strict` found a metric that is not `ok`. `--strict` is off by default. The runner writes the report first, then exits 2. A smoke run with the metrics extra missing still exits 0.
165
+
166
+ ```bash
167
+ diffeval list tasks
168
+ diffeval list metrics
169
+ diffeval list backends
170
+ diffeval run --backend dummy --suite core --seeds 0 --output outputs/smoke
171
+ diffeval run --backend dummy --suite core --metrics geneval --strict
172
+ ```
173
+
174
+ The last command writes the report and exits 2. `geneval` is skipped, and `--strict` requires every aggregate status to be `ok`.
175
+
176
+ ## Command reference
177
+
178
+ ```bash
179
+ diffeval list tasks
180
+ diffeval list metrics
181
+ diffeval list backends
182
+ diffeval run --suite NAME_OR_PATH [options]
183
+ ```
184
+
185
+ | Option | Description |
186
+ | --- | --- |
187
+ | `--suite` | A registered suite name, or a path ending in `.yaml` or `.yml`. Required. A bare name is looked up in `TASKS`. |
188
+ | `--backend` | `dummy` or `diffusers`. Defaults to `diffusers` when `--pipeline` is set, otherwise `dummy`. |
189
+ | `--pipeline` | Hugging Face model id. Required for the `diffusers` backend. |
190
+ | `--steps`, `--guidance` | Sampler steps and guidance scale. FLUX.1-schnell presets to 4 steps and guidance 0. Other models use the pipeline defaults. CLI values win. |
191
+ | `--dtype` | Requested dtype. On CPU, float16 and bfloat16 load as float32. `describe()` stores the dtype actually used in `dtype` and the flag in `requested_dtype`. |
192
+ | `--device` | Device for the pipeline and for metrics. With no flag, metrics use CUDA when torch reports it, otherwise MPS, otherwise CPU. Without torch, metrics use CPU. |
193
+ | `--attention` | `sdpa`, `xformers`, or `eager`. With no flag, the pipeline default stays. |
194
+ | `--variant` | Diffusers pipeline variant. |
195
+ | `--batch-size` | Positive integer. Default 1. |
196
+ | `--seeds` | Comma-separated integers, overriding the suite. Example: `--seeds 0,1,2`. |
197
+ | `--metrics` | Comma-separated metric names, overriding the suite. |
198
+ | `--width`, `--height` | Image size in pixels, overriding the suite. |
199
+ | `--output` | Output directory. |
200
+ | `--strict` | Exit 2 unless every aggregate status is `ok`. The report is still written. |
201
+
202
+ `describe()` also records `steps_source` and `guidance_source` as `cli`, `preset`, or `pipeline-default`.
203
+
204
+ ## Metrics
205
+
206
+ | Metric | Better | Implementation | Needs references |
207
+ | --- | :---: | --- | :---: |
208
+ | `clip_score` | higher | Hessel et al. 2021, CLIP ViT-B/32. Mean of `2.5 * max(cosine, 0)` on the raw prompt, truncated to 77 tokens. | no |
209
+ | `cmmd` | lower | Jayasumana et al. 2024, CLIP ViT-L/14 at 336, center square crop, L2-normalized vision embeddings. Minimum-variance RBF MMD, diagonal included, sigma 10, scaled by 1000. Matches the [cmmd-pytorch](https://github.com/sayakpaul/cmmd-pytorch) sample check of 7.696. | yes |
210
+ | `fid` | lower | clean-fid `compute_fid`, `mode="clean"`, Inception-v3. clean-fid resizes each RGB image to 299×299. diffeval does not resize the PNG first. | yes |
211
+ | `kid` | lower | clean-fid `compute_kid` on the same features. Degree-3 polynomial, 100 subsets, subset size at most 1000. | yes |
212
+ | `geneval` | higher | Stub. Returns `skipped`. `details.by_tag` maps `single_object`, `two_object`, `counting`, `colors`, `position`, and `color_attr` to null. Mask2Former is not imported. | no |
213
+
214
+ The registered metrics are `clip_score`, `cmmd`, `fid`, `kid`, and `geneval`.
215
+
216
+ `clip_score`, `cmmd`, `fid`, and `kid` return `skipped` when their library is missing. `fid`, `kid`, and `cmmd` also skip when the suite has no reference. A reference is an image folder, precomputed `clean_fid_stats` for `fid` and `kid`, or a `.npy` CLIP embedding for `cmmd`. `fid` and `kid` also skip when the generated folder or the reference folder has fewer than two images. Both calls seed NumPy with the evaluation seed and restore the previous state. FID, KID, and CMMD set `details.warning` when the image count is below the published COCO setup of 30000. The `metrics` extra pins SciPy below 1.18: clean-fid 0.1.35 calls `scipy.linalg.sqrtm` with `disp=False`, which SciPy 1.18 removed, so `fid` and `kid` would error.
217
+
218
+ `diffeval-check-cmmd` downloads the six cmmd-pytorch sample images and checks that `cmmd` returns 7.696, the value that implementation documents. Earlier versions skipped the L2 normalization and the center crop, so their `cmmd` values are not comparable with published ones.
219
+
220
+ [Benchmarks](https://github.com/woletee/diffeval/blob/main/docs/BENCHMARKS.md) compares diffeval with published CMMD values and lists the commands to reproduce them.
221
+
222
+ Each metric's `protocol` dict is copied into `metric_protocols` in `results.json`.
223
+
224
+ ### How scores are aggregated
225
+
226
+ | Status | Meaning |
227
+ | --- | --- |
228
+ | `ok` | every seed succeeded |
229
+ | `partial` | some seeds succeeded |
230
+ | `skipped` | every seed was skipped |
231
+ | `error` | at least one seed failed and none succeeded |
232
+
233
+ The mean uses successful seeds only. The standard deviation is null below two successful seeds, which the console prints as `n/a`.
234
+
235
+ ## Backends
236
+
237
+ | Backend | Description |
238
+ | --- | --- |
239
+ | `dummy` | Deterministic RGB images. CI and the smoke command use it. `describe()` sets `device` to `cpu` and `attention_backend` to `none`. |
240
+ | `diffusers` | `AutoPipelineForText2Image`. Each request gets its own CPU `torch.Generator`, seeded from that request. |
241
+
242
+ fal and Replicate are not registered. v1 ships `dummy` and `diffusers` only.
243
+
244
+ ## Suites
245
+
246
+ A suite is a YAML file. A file that omits width or height gets 512 for each. A file that omits metrics gets `clip_score`, `cmmd`, `fid`, and `kid`. Prompt ids match `[A-Za-z0-9_-]+`, because they become file names.
247
+
248
+ ```yaml
249
+ name: shapes
250
+ description: Two prompts for a local check.
251
+ seeds: [0, 1]
252
+ width: 512
253
+ height: 512
254
+ metrics: [clip_score]
255
+ prompts:
256
+ - {id: red_cube, prompt: a red cube}
257
+ - {id: blue_sphere, prompt: a blue sphere}
258
+ ```
259
+
260
+ ```bash
261
+ diffeval run --backend dummy --suite path/to/shapes.yaml
262
+ ```
263
+
264
+ The bundled `core` suite has four synthetic prompts (`red_cube`, `blue_sphere`, `green_triangle`, `yellow_star`), seeds `[0, 1]`, 512×512 images, and small reference drawings under `reference_dir`. Those drawings are not COCO. A `core` score is a smoke check.
265
+
266
+ ## Extending diffeval
267
+
268
+ Importing `diffeval` loads the plugins. Each task, metric, and backend registers into `TASKS`, `METRICS`, or `BACKENDS`. Add a module, import it from the matching package `__init__.py`, and the name shows up in `diffeval list`.
269
+
270
+ <details>
271
+ <summary><b>Add a metric</b></summary>
272
+
273
+ <br>
274
+
275
+ The runner constructs the class with no arguments and calls `compute(samples, context)` once per seed. Return a `MetricResult`. Status `ok` carries a finite float. Status `skipped` or `error` carries a null value and an error string. `protocol` is copied into `metric_protocols`.
276
+
277
+ ```python
278
+ from diffeval.metrics.ok import ok
279
+ from diffeval.metrics.skipped import skipped
280
+ from diffeval.registry.register import register
281
+ from diffeval.registry.tables import METRICS
282
+
283
+
284
+ @register(METRICS, "example")
285
+ class Example:
286
+ name = "example"
287
+ description = "What the number means."
288
+ higher_is_better = True
289
+ requires_references = False
290
+ protocol = {"formula": "state the formula here"}
291
+
292
+ def compute(self, samples, context):
293
+ try:
294
+ import some_library
295
+ except ImportError:
296
+ return skipped(self.name, "install some_library", self.higher_is_better, self.protocol)
297
+ value = ... # a finite float for this seed
298
+ return ok(self.name, value, self.higher_is_better, self.protocol)
299
+ ```
300
+
301
+ A missing optional library returns `skipped`, with the reason in the error string.
302
+
303
+ </details>
304
+
305
+ <details>
306
+ <summary><b>Add a backend</b></summary>
307
+
308
+ <br>
309
+
310
+ The runner calls `from_config(config)` on the class, then `prepare()`, `generate(requests)`, and `describe()`.
311
+
312
+ `generate` returns one `diffeval.types.sample.Sample` per request, in request order. `Sample.image` is a PIL RGB image seeded from that request's seed. The runner writes it to a path like `images/seed_0/red_cube.png`.
313
+
314
+ `describe()` returns `name`, `pipeline`, `dtype`, `requested_dtype`, `steps`, `guidance`, `steps_source`, `guidance_source`, `batch_size`, `device`, `attention_backend`, and `variant`.
315
+
316
+ [`src/diffeval/backends/dummy/backend.py`](src/diffeval/backends/dummy/backend.py) is the short example.
317
+
318
+ </details>
319
+
320
+ <details>
321
+ <summary><b>Register a named suite</b></summary>
322
+
323
+ <br>
324
+
325
+ To make a suite available by name, register an object with `description` and `load()`. The runner calls `load()` on that object. It does not construct the class. Follow [`src/diffeval/tasks/core.py`](src/diffeval/tasks/core.py), which registers an instance.
326
+
327
+ ```python
328
+ from diffeval.registry.register import register
329
+ from diffeval.registry.tables import TASKS
330
+ from diffeval.tasks.load_path import load_path
331
+
332
+
333
+ class Shapes:
334
+ description = "Two prompts for a local check."
335
+
336
+ def load(self):
337
+ return load_path("path/to/shapes.yaml")
338
+
339
+
340
+ register(TASKS, "shapes")(Shapes())
341
+ ```
342
+
343
+ To ship a suite with the package, put its YAML in `src/diffeval/tasks/suites/` and import the module from `src/diffeval/tasks/__init__.py`.
344
+
345
+ </details>
346
+
347
+ ## Project layout
348
+
349
+ ```text
350
+ src/diffeval/
351
+ ├── cli/ argument parsing and the list / run commands
352
+ ├── tasks/ suite loading and the bundled suites
353
+ ├── backends/ dummy and diffusers
354
+ ├── metrics/ clip_score, cmmd, fid, kid, geneval
355
+ ├── runner/ per-seed generation and scoring
356
+ ├── aggregate/ mean, sample std, and status across seeds
357
+ ├── report/ console, Markdown, and HTML
358
+ ├── registry/ TASKS, METRICS, and BACKENDS
359
+ ├── system/ package versions, GPU, and attention flags
360
+ └── types/ shared records
361
+ ```
362
+
363
+ Every `.py` file in `src/` and `tests/` has at most 20 lines of code. Blank lines, comments, and docstrings do not count. Imports do. [docs/DESIGN.md](https://github.com/woletee/diffeval/blob/main/docs/DESIGN.md) is the rule and the module tree. [docs/ROADMAP.md](https://github.com/woletee/diffeval/blob/main/docs/ROADMAP.md) is the split into pull requests.
364
+
365
+ ## Contributing
366
+
367
+ ```bash
368
+ pip install -e ".[dev]"
369
+ pytest
370
+ ```
371
+
372
+ CI runs that on Python 3.10, 3.11, and 3.12, then runs `diffeval run --backend dummy --suite core`.
373
+
374
+ Keep new behavior inside the line cap. Register tasks, metrics, and backends by name. Do not commit model weights. Do not report a smoke score as a paper result.
375
+
376
+ ## License
377
+
378
+ Apache-2.0. See [LICENSE](https://github.com/woletee/diffeval/blob/main/LICENSE).
@@ -0,0 +1,185 @@
1
+ diffeval/__init__.py,sha256=AV7OXV_zliA85zXZp0JaD58eH3-diIwaipSbrtka8nA,160
2
+ diffeval/__main__.py,sha256=hONcUGf6l2JDkNEOBBs6owvrP91THESdcvb-OKTyXY4,124
3
+ diffeval/plugins.py,sha256=6YwbM0KrBKUL1PdIfzPdo2aajFjo7wioOiXXkAWWJts,164
4
+ diffeval/aggregate/__init__.py,sha256=KwYK6PHc5s55U6gRx4eHlC5TZMfWKtRIwCl87F6AZ3s,56
5
+ diffeval/aggregate/mean.py,sha256=2aRWBo__UbVi8yhZtct7m2h0v-lKiKqMqlF4RNuiNzQ,160
6
+ diffeval/aggregate/names.py,sha256=PEfIVNyhQE6DALeIOq92otbnaGU63QETVWYHpkTx5Lw,307
7
+ diffeval/aggregate/row.py,sha256=gsKzRqkOZNIAap-XUk_FB7OkI2uNd79LZUDzQzR9l5Q,836
8
+ diffeval/aggregate/sample_std.py,sha256=5_xCdWQu0S7kCwsN3WJUYmxvef_AMEkE3tH-ONrrCnU,203
9
+ diffeval/aggregate/series.py,sha256=J8mQeyZ5fSC9FQGy25_3zR62ZNa4TKUXTfAPDJy1kJk,811
10
+ diffeval/aggregate/table.py,sha256=oHwG6hC8LA6JT2QhGPsOWVw1kIOb0sKbo4BKGVA93Yg,255
11
+ diffeval/backends/__init__.py,sha256=W_ADkvPCD4W43oLqzDcuVMv4x7MnzfOyzuTFnMCpfBY,127
12
+ diffeval/backends/noop_prepare.py,sha256=_LS3rx81zdA5sOf3DhZFcJFhUlKMD0ST68Yhenc3vj8,79
13
+ diffeval/backends/protocol.py,sha256=qjBjzXjtMjIPeY8xXHjoRl6G--W2s55pgwnEqRfQDv0,420
14
+ diffeval/backends/diffusers/__init__.py,sha256=a4QTpEH45OA_ca6ki9W3PYsPPWQN3pSnirG_Krbcl2E,40
15
+ diffeval/backends/diffusers/attention_apply.py,sha256=sDsrWtcuOcDv26ReWucuf5lYba3KOAcsCEHtCQWoUmA,596
16
+ diffeval/backends/diffusers/attention_eager.py,sha256=SRPOG1h_9T0iSES5FaINMvgWe-JRoiRSmg4cdGS-KbU,189
17
+ diffeval/backends/diffusers/attention_name.py,sha256=PZ5M_bs-qvTnk5nI1KBO-7NHmjyWtQ8NQnTaoMuUN_c,447
18
+ diffeval/backends/diffusers/attention_sdpa.py,sha256=gdcr0XLOZ72GCzf1Twqr8xNtgaBYpTEFsn4GtjhJqgE,187
19
+ diffeval/backends/diffusers/attention_xformers.py,sha256=ZkpdvHCXviTpOtY0zlZg7L6fM4FHbCwfVtUT-i1LMM0,128
20
+ diffeval/backends/diffusers/backend.py,sha256=OVgoPHhyFcToaJawsSKBL_McDgbz_1d_CSPtRD7LvF4,1122
21
+ diffeval/backends/diffusers/call_kwargs.py,sha256=fLXwzXLewhJjXSdLk13UFtS_jWSRSjce1M7fcrmCa0g,685
22
+ diffeval/backends/diffusers/coerce_dtype.py,sha256=AuAQepjrkV5QmmSUOUXIv4DN-oJqDzJf17WYTwnKIYQ,348
23
+ diffeval/backends/diffusers/describe.py,sha256=tpbKQ8OacrkVZs-SjdlH7Jq6hBmeb3jKN1QMjgF7YIM,697
24
+ diffeval/backends/diffusers/dtype_name.py,sha256=6Pll7Hib5h_lrygRUTn2YP9CVT-JQHg2DjBuNZrsSLg,703
25
+ diffeval/backends/diffusers/from_config.py,sha256=pDdpTDCrKF_nshJBr7eLYK6Q7nwxVR_0-4VAE-aCYIo,788
26
+ diffeval/backends/diffusers/generate.py,sha256=-QGtrUXMFSZDmwbhxZ91sMvUQHHVrOdPHz35tsB0eMI,706
27
+ diffeval/backends/diffusers/kwargs_generator.py,sha256=DEdBNeVi6R2nzOG94Rq--D5Qgln1PsIu-QzpXFk80TM,166
28
+ diffeval/backends/diffusers/kwargs_prompt.py,sha256=VtzwmRkfeulfmGgZZnI3gW6mxEVaOHCPv1q92R5iFok,441
29
+ diffeval/backends/diffusers/kwargs_sampling.py,sha256=7waAXytyIQVXf4imWj8kaVOKnUkMpbKe4NkcHJPxwOU,618
30
+ diffeval/backends/diffusers/kwargs_size.py,sha256=TunIUieZp9YB2Ij93aOoNxAHAVJg4sd441aa_dqRARs,517
31
+ diffeval/backends/diffusers/load_kwargs.py,sha256=THFBjE8CoI3UltF8-x6c-uh5Ue3yYNDaHmAWqjKU1XE,265
32
+ diffeval/backends/diffusers/load_pipe.py,sha256=-ZWAoSuxvJYsykJt2KpNKBmliJjkX9oj0MPOiVTh-9c,1237
33
+ diffeval/backends/diffusers/missing_dep.py,sha256=_pQlC7a-YcEumeVZi6uUsVULvGZfv0DwjE4UsNseNws,312
34
+ diffeval/backends/diffusers/one_batch.py,sha256=sYQZoNzf3n3z81bL7w6dDBmcoohum8CMGFQqhCoCqJs,465
35
+ diffeval/backends/diffusers/pick_device.py,sha256=g0HTwRLSyU2Ryc5A8eb7e6k8B6MG2OvT7WK2dgLU-MI,340
36
+ diffeval/backends/diffusers/presets.py,sha256=cNB-BGCWwoXwYH_jSY0YdXBv7LV8hwOvwvgAg_ID_1g,231
37
+ diffeval/backends/diffusers/sampling.py,sha256=J4doyi1-C44U7c4miRI6n6PcrHBdMOfXgm0Ke8w-ejM,707
38
+ diffeval/backends/dummy/__init__.py,sha256=8rDTezeDWf81JdKeCWCUGm-GrMdKQ_niRk7tvyE0xc0,47
39
+ diffeval/backends/dummy/backend.py,sha256=T_EAsuSnDYmUXK0XZ9UMwB3fu4sKR64OOBiN0Ylsmso,950
40
+ diffeval/backends/dummy/box.py,sha256=uAyiQ5-amr1kzfwnEq35agSxI6rYvBFLj7TjIOwWZz8,346
41
+ diffeval/backends/dummy/colors.py,sha256=uzwAG5k0gILoI6KM8e0nReOGTMuKdey0UTlMx69ImTE,369
42
+ diffeval/backends/dummy/describe.py,sha256=UeXxA_y_N3pRk6tyosvr_zYsljz01axiQxgMggfhBxM,591
43
+ diffeval/backends/dummy/draw.py,sha256=ayXxcP9GiwKvNKsM8ozpTDfbbIZmrOtRUHnxNvmnvAk,476
44
+ diffeval/backends/dummy/from_config.py,sha256=RxyY3CqbUrANcozqkgX1ngZD6TAhdVMIcPIHWS4n7h0,570
45
+ diffeval/backends/dummy/generate.py,sha256=6Utx4qRWMXnaInv6wkZJ_Dfp3gfUxsMeg1CalawsPY0,642
46
+ diffeval/backends/dummy/render.py,sha256=F5Zd36SXFr298d1_n7JfZrp770WQ1cuWFs9VfFBtwoo,613
47
+ diffeval/bench/__init__.py,sha256=Y5RFNKiPHgvKBVuPRbaUuenhBmgj-0tgF6JL1jFdbb0,85
48
+ diffeval/bench/cmmd_check.py,sha256=UC-DEzYuPfxsNNQ6F4066il1LRoAkKxkIRIFR4t_GJg,795
49
+ diffeval/bench/cmmd_samples.py,sha256=ZRETpulwZmHZ436tNq0QYAWGmCYwX2TdkD6YN5TszMM,612
50
+ diffeval/bench/coco30k_cli.py,sha256=O7VDfuXba08MllrKDtXbbvo38CqeqmOG_EjLpqgrEsE,1189
51
+ diffeval/bench/coco30k_export.py,sha256=qkFIr8pDVMdem4Orw2tdEZaPe7sTnygH9YuA7jXCnXE,743
52
+ diffeval/bench/coco30k_files.py,sha256=eVqp05hiR6iWUvoAaDEKdDHKZM-WHXGm5bUiy0P3pSU,691
53
+ diffeval/bench/coco30k_images.py,sha256=umdf2S3ttlk_JJrvdQW8w25qCjJVEXYY7wyAUgbufdo,765
54
+ diffeval/bench/coco30k_suite.py,sha256=HjHi8gO_zCG6eLl0g2ZvWs9qNPY6hWJnDe62-gy1KKY,799
55
+ diffeval/bench/fetch.py,sha256=mUiNEhPtU42DWokO86cJX94OM_VgHjUP-i3NG8RPtuI,325
56
+ diffeval/bench/published.py,sha256=2LwI1ZjTZ24EwdT6B5btTZ1BPiQM6DqIblgBU-f6Pyg,397
57
+ diffeval/bench/table_cli.py,sha256=qixXR8iULjof6teyI4uVq1bARYIUu8Im585eFo93T_U,488
58
+ diffeval/bench/table_row.py,sha256=EHE7TEHkl3TewLhbACqQs4gQMuWRPExADCH6ADjvxuU,1081
59
+ diffeval/cli/__init__.py,sha256=4V0irZMNErUIhrVB5uA1WagP4ILj3e-vUTRUKux4XqM,31
60
+ diffeval/cli/command_list.py,sha256=kTXxWBwhCUFgz5afpla4eqqNahe0B27N2dFjx5u9F3o,379
61
+ diffeval/cli/command_run.py,sha256=wQbpbg3ZKSfxDldkw9V5A1EEhylbwAwE9ikm2hZ6HP8,977
62
+ diffeval/cli/config.py,sha256=KQboxs9LGsf4bp9BJ_m1DpEnolCo_A9ZPY8KubXlDQM,594
63
+ diffeval/cli/csv_ints.py,sha256=xvY3-dOFLFORBh8h2p-XiWPaMRXfqCc30g8txgL_pEg,352
64
+ diffeval/cli/csv_names.py,sha256=fQczfuFffOiXn-fqmfkSplLI2zcxnDZYizD11edAWhI,266
65
+ diffeval/cli/main.py,sha256=rTDmoSY6P2LOZ75cZcL_ArHRH9OxHatK2srJUNFPpUw,403
66
+ diffeval/cli/output_dir.py,sha256=HFw9F5oY2bauVTvQWVdUVUrmQeRi7HkorQObLVaw8ds,432
67
+ diffeval/cli/parser.py,sha256=lXaFup2gji_D7NWX6q2MhE5IUJrPxo_thecHDPPfxAY,572
68
+ diffeval/cli/print_paths.py,sha256=FatkHa_VShGa7t4I-GTUm5f21k8iN49SgijMG9DYeTs,420
69
+ diffeval/cli/print_registered.py,sha256=H0535bO0RRGlg-IyUAUKUcNn7saLGuag8D5ceGIMDbk,216
70
+ diffeval/cli/run_parser_eval.py,sha256=7sGCV43aDgRqX9Czk8ImbqdqLgReVtsK2WfTUnswaTA,589
71
+ diffeval/cli/run_parser_model.py,sha256=kkdhsr_ezSkxy0CtHdjmp8xQ6iAxAgN__jMfHIb76G8,639
72
+ diffeval/metrics/__init__.py,sha256=b4OClYTmjGI1UxZ58bhmdE0nIzFllHbqAft4AjbPu8g,228
73
+ diffeval/metrics/count_warning.py,sha256=5XaGrq_Y0ko7mtZjJJQYAyUlLF_rjjno8pMEtZlpKcg,253
74
+ diffeval/metrics/images.py,sha256=hW9MAGM_QesQvVmx1yC-fVlgpdbcCYlQ2Z3VAy2opEo,329
75
+ diffeval/metrics/ok.py,sha256=CXCrbRCd8gJJZvW2C29jL9YbpXfka_UYESpwnz4_oQ4,360
76
+ diffeval/metrics/protocol.py,sha256=Ptmbw2NQTfHC6TKayxGXNebscnDLBpZvS0qX8Sl_yoo,438
77
+ diffeval/metrics/skipped.py,sha256=6rlzM-t_kTsN2CfIlbJKFWPjD_kVtr9NGYGmuQjOPxY,415
78
+ diffeval/metrics/clip/__init__.py,sha256=DkA5nOCJNqKeDaQzRIb-l3_zQ7Y218l8fAH1PF-GNbE,25
79
+ diffeval/metrics/clip/features.py,sha256=iNaZqdA_MtiSL5bfXQ0OysGi2XdNiT_JpEtNuWRZ22c,481
80
+ diffeval/metrics/clip/formula.py,sha256=QO6zNPCzaQ0HBWf0xChXkpKg_-eIwjfhyekRfZ4-6xg,201
81
+ diffeval/metrics/clip/load.py,sha256=GVhZlEIb_IL0UlhyU6zCryGDGwr5GcRcrgFAyvCZbKw,477
82
+ diffeval/metrics/clip/metric.py,sha256=9YYNOO98jFthBlcxKzlPLA48s2eb7mMLKz8N1bi0MLM,591
83
+ diffeval/metrics/clip/protocol.py,sha256=g0Q_8_Mo_O0cDDEVW7qZagzrsQjj1FPRniBxNaiOGco,318
84
+ diffeval/metrics/clip/sample_image.py,sha256=UOqi1wTJupoBETG3PIsLjAkUsGPzFBMXVqNVHdOz9Nk,331
85
+ diffeval/metrics/clip/score.py,sha256=a5_gDN1KYe5Um6KD6QVt6TDyvXH-oOViJwANzepB1wo,1091
86
+ diffeval/metrics/cmmd/__init__.py,sha256=Xpi1fLyAR5OTkE5-Fm3VBPd9DM0lJsnNZTAntIv2NaY,20
87
+ diffeval/metrics/cmmd/embed_batch.py,sha256=IWLdXwyZEGSiUzyyBttUPMUNMqE8OEq3wFdDealop9s,968
88
+ diffeval/metrics/cmmd/embed_paths.py,sha256=UJA-NhjDmtFDx3feAZNgJdK_NEsVQwBjnwqTTsqiFSs,1055
89
+ diffeval/metrics/cmmd/metric.py,sha256=ygnkUjttqAkV9UBar-A57Yo6lTCRzuPvlZIrqHfdvb0,559
90
+ diffeval/metrics/cmmd/mmd.py,sha256=MrhyyN0WjbssLiSQEl-fauMHUJCZcYxpKjF5RwRkA7Q,783
91
+ diffeval/metrics/cmmd/protocol.py,sha256=QyBzdNW5CrAoKlPS9cDr15xjJc1jNwItrbqfEXcF6yc,457
92
+ diffeval/metrics/cmmd/resize.py,sha256=0QNnIZ3KLC_C43Ba_Bzw1f7J6L9U60V9v09ygTwQl3Q,540
93
+ diffeval/metrics/cmmd/score.py,sha256=JYUxF6jZbLgo6yr41NEeYhzJeV3898_AojpKlSoOKFw,1156
94
+ diffeval/metrics/distribution/__init__.py,sha256=DIKIRdg4pVnimFZR11myPIR1UO5o0zY5cBi0Hpig5lE,20
95
+ diffeval/metrics/distribution/call.py,sha256=aFDBb02Duwm3gLcKLtQ2gecfkM6N3pURFaNXDoGs-3c,1113
96
+ diffeval/metrics/distribution/kwargs_folder.py,sha256=hoJTX5129a72IoaxBUjyRhoT6Zt3h8WjTSptzB-dtYQ,829
97
+ diffeval/metrics/distribution/kwargs_stats.py,sha256=V6_O8DJFEbdzdlzzkgmJQ7mb5TqNehIEP6uwLbmV8M4,502
98
+ diffeval/metrics/distribution/protocol.py,sha256=16wpT4Ov6d00buKXJ0U_AoJA9_9QhVQJNXUIxujVOj0,480
99
+ diffeval/metrics/distribution/seed_numpy.py,sha256=2TFW3qHFqxx9dYbQssmqNiFE51N9K2ZonZkhupevylE,255
100
+ diffeval/metrics/fid/__init__.py,sha256=5CwMV1VE5wZzGHv5nN74T0_IgEFS-_l9NZ7nssJN7Nk,19
101
+ diffeval/metrics/fid/guard.py,sha256=q_AZ1mV0JjiiY5rEtKLGroYuDocaHlJ-pcZt_cwoZwM,533
102
+ diffeval/metrics/fid/metric.py,sha256=IshgH2zdNSO469Rd0gW-3-pg27tfTMiCoGp1u3s9QRk,594
103
+ diffeval/metrics/geneval/__init__.py,sha256=sFAQiXzXV02ANdAhG6g1J28wUoYKxOYpZTjfZCJK39w,21
104
+ diffeval/metrics/geneval/metric.py,sha256=HK9AdDSgMrIALAA7lKXBucMdpreOMAQ_1z11KcrVPtk,744
105
+ diffeval/metrics/geneval/protocol.py,sha256=eXFMbh8eEpMjTNFhhSFs4o7tKGK_DzYU63VNaKD59bU,165
106
+ diffeval/metrics/geneval/tags.py,sha256=6KlzO3_9esYy2DTXoorDJrVNKHu3MhyFXCSZ2yFEUUU,124
107
+ diffeval/metrics/kid/__init__.py,sha256=Nn8wpgHxbudKyDZPG6sPYPu-N9lmNH-uHDF93cNYe5c,19
108
+ diffeval/metrics/kid/guard.py,sha256=-Ivtp9qZd3SNnuUuMD-CjQf6P0mBad7hy40Btg1MciU,111
109
+ diffeval/metrics/kid/metric.py,sha256=rTluSVLFQGQoZ6CD2DA1mAtoB8xHby58A29ZhrBd7PM,585
110
+ diffeval/registry/__init__.py,sha256=InO7Er1SjXtwIBasKKNb-cLGB7ZTdyVoLq7qGcV1iCk,45
111
+ diffeval/registry/lookup.py,sha256=iM8L-3l3z5hpI6S4xxKX2NwX-i028HgfdpTd-KQ5sMQ,285
112
+ diffeval/registry/names.py,sha256=JDu7NCIdCNFFhvSdN7B8EYx276zLMCmsLbG2JCjFClA,98
113
+ diffeval/registry/register.py,sha256=frqKb2lQbb2kEQfUu1A4EVY4eToqpUdFxNW4mHggT-g,299
114
+ diffeval/registry/tables.py,sha256=Q-McMkR9t_FEFe18jlrMOYTygCWBZbRQMl7pxr90sG8,113
115
+ diffeval/registry/unregister.py,sha256=Iz9LfKGMBVjgHpUDf-VEEyPwesCma0qR1JWs7qyo2wU,112
116
+ diffeval/report/__init__.py,sha256=ihoQNZFKSnC5JL7Q18qEjZZEFoD4KPF9DScRPLWYKqo,56
117
+ diffeval/report/console.py,sha256=PJU72cHiOut8P0EbJ4z3UJm72X8MUDRigUcEz7TktDY,768
118
+ diffeval/report/console_widths.py,sha256=bPYaMF9nmEZc_Hwlj6C9BgHn2fbO8FXmOI74hg0nqmY,178
119
+ diffeval/report/direction.py,sha256=VslsJLAPBkyzhxUSPIlru6GURN1yfMhZu48CPp1Pfwg,198
120
+ diffeval/report/html_figure.py,sha256=8NbmDHIMATKlHOJtEmVSLkNNUxLOV75sjv22WqKVBX0,300
121
+ diffeval/report/html_grid.py,sha256=2pmRmpxPmQPtrVPgSmoXnP5SC7qNGnWUnrOozdgYXaI,662
122
+ diffeval/report/html_page.py,sha256=gB9wRigrh2WaikqtHKG7ZR9Z4GB5HCSqj0robz2S51o,585
123
+ diffeval/report/html_row.py,sha256=LkGDLuVg2ZUEuBgtsUfS27YLfDZXS2NLmgjPnGXr_1k,477
124
+ diffeval/report/markdown.py,sha256=ID51MIEZsy_TTecp0KUFs1ZyeXGGaB8fDyO82IKEIBw,445
125
+ diffeval/report/markdown_row.py,sha256=LDMlcAibs2k8VT1B2rVC8PEo_QlSUO0lEUQ5XxTqlek,409
126
+ diffeval/report/number.py,sha256=NcO0BDscEyM8ui_jMwt_w3FzMwt-LXhWRvvpym8DPmo,167
127
+ diffeval/report/templates/page.html,sha256=4piZfB7n-Z9PGuKjfLuM0K0mEQcLyucTgE5FTasQz9I,1191
128
+ diffeval/runner/__init__.py,sha256=46wQOnD1V-OP8z3_VGQchV_-5eVbx8wzpQ2t2oiZrBQ,60
129
+ diffeval/runner/generate_save.py,sha256=MuS44klW3dhjjUl82QPXMJg1Nl2IxqMRoxtdROkrP5U,660
130
+ diffeval/runner/metric_device.py,sha256=40f9l73sBAKqCcfmHyRCjbUZR1hrScRqFqG8QjMfyYA,408
131
+ diffeval/runner/one_seed.py,sha256=_hPV4QwIEVPe0BzV6rwRiRU6fikalA0zzXKiT6TrNBo,1109
132
+ diffeval/runner/options.py,sha256=gnRmIWxBrPaByzvsrETRw1_zEQI7pU013CPK3AJk__U,662
133
+ diffeval/runner/payload.py,sha256=UA-VdDlBmllG-uxvliuaZ4D8cNK26dQVHiiRokGWLkA,1435
134
+ diffeval/runner/relpath.py,sha256=BK45uqfUplwOWQ3e7nyEY5OiJeLFmBtkWVwlJS4YFLw,187
135
+ diffeval/runner/requests.py,sha256=q-CqJ34dQYWqDbHizzsCiq7TgHnCdMY8T4YslRlbYGs,294
136
+ diffeval/runner/run.py,sha256=cGGeq_zBhj8tjphoVwDgusJw6awKWOqV59zJiRn_6ds,963
137
+ diffeval/runner/safe_metric.py,sha256=xh4oy4ZZD5AEtBMDdwPyjEwZCRAqCbU9qrDyHiAc2PE,737
138
+ diffeval/runner/save_png.py,sha256=jR66uqBgb_TZ78168GqTPzznVJU5_65bX58bG0T5JRY,209
139
+ diffeval/runner/seeds.py,sha256=KPre4lcec9oj12leD7at_tZa6fBQEIN0wIHSAtPL2ok,875
140
+ diffeval/runner/write_json.py,sha256=TcD1zkGwCWYKhZwMqj6vdMlzIHLQlN7WwMXdiYOHb24,316
141
+ diffeval/runner/write_reports.py,sha256=_gZLzXNs2VDqQvSjIVZ9JpQoil6Bs6imPOiPqWBVxHs,487
142
+ diffeval/system/__init__.py,sha256=MtgwEpd10OuJAuKtZUgjbxFJ6EIJirnrE_WsiDXRJ-g,53
143
+ diffeval/system/describe.py,sha256=wiqwMrrM8yBjVWu7wfZ4gFyhrdizxud6ncGNQApNF7U,271
144
+ diffeval/system/gpu.py,sha256=vj-vqvufFvt6TlxNIB5YmWxk71hpdYfVBYL6mxchnZk,284
145
+ diffeval/system/gpu_cuda.py,sha256=Y4T9UFHPrv7bkG0JwB4QAeFwIbHS78y8usCUjZLb5lw,352
146
+ diffeval/system/gpu_mps.py,sha256=ZS1CJ-P173gX7U7klrRuGkRnoOgou9VlRNZ2vD0HDOU,268
147
+ diffeval/system/sdp_flags.py,sha256=nsOY59bQ4X4K8vyrbogLC2-pQK8kp9Q3U1EAvRfiOm0,410
148
+ diffeval/system/version_of.py,sha256=59-E_HnFSycOtysWXZ8jRhDKrBE46ISYFKcY6Iuecqg,248
149
+ diffeval/system/versions.py,sha256=iTgRPPJrgpZHQlz8XAf2zwV15aDRLJtwLfVf0flpSDI,619
150
+ diffeval/tasks/__init__.py,sha256=0muiLn5rushiv3oJm33VA823cYoMdfkhiT8p-pFTC7U,66
151
+ diffeval/tasks/build_suite.py,sha256=lPtxGLniqYoS91rzGp8dJjvF5aYmW-ngNy0zU_KFnNU,159
152
+ diffeval/tasks/core.py,sha256=nmClOKMQxEbw1aHcZiJgzo4_Xky0n_40m48K8nVUuiU,373
153
+ diffeval/tasks/errors.py,sha256=gqqet21orgb8iycWlHknFYapJou_2yr0AOCn6j2Tg0Y,140
154
+ diffeval/tasks/fields_metrics.py,sha256=uRivVz12QpmTPXyoOHCevc8gxMocD1vJadupm175XnA,489
155
+ diffeval/tasks/fields_paths.py,sha256=13ZJIijaOxP3aekNgAervi_z14BNHA9h8sfYkt3j4hU,801
156
+ diffeval/tasks/fields_prompts.py,sha256=6t7Qbs6izZNDVaXvStM42IvnpJP3A5gfDdrMUFLKqE4,588
157
+ diffeval/tasks/fields_seeds.py,sha256=uDgp84BNYPmffEGTpEo9qLB6OCkXfIlWNOC0mbjFa4M,488
158
+ diffeval/tasks/fields_size.py,sha256=T8SumjGDrpIKqA7l68GZHpz9p2G3IemxAdQXd3lt53s,429
159
+ diffeval/tasks/fields_text.py,sha256=1OLkircSqSSGDsGfLoRdZSj4UOHJYC6mBEcBmN8le3k,473
160
+ diffeval/tasks/from_mapping.py,sha256=hw5FKG9OqbhbZ4sf2HsJEz8zYVNHyEtbrPN2_WkmCjo,786
161
+ diffeval/tasks/load_bundled.py,sha256=yhXOlgWMm_LCW8RxKaI8VIUwsECsD9e27PFwvgWtizQ,225
162
+ diffeval/tasks/load_path.py,sha256=VT5gv1TrZ4005sZAeKEsr3kgcfwZYqQIxWHanjC2VXc,345
163
+ diffeval/tasks/one_prompt.py,sha256=yZS4nBlmN9YaDaVMa_fkNIS7AOLCmwHoU5pTmoDqu_4,682
164
+ diffeval/tasks/prompt_id.py,sha256=dTXrQTMFCPdhADnLgQVtEQF5LyPEo2AqpWwviEcQRKo,321
165
+ diffeval/tasks/read_yaml.py,sha256=7X-nEdmwhFKkXOtRqf_YFxUgM7jDKwjT_IofYl64-DY,344
166
+ diffeval/tasks/resolve.py,sha256=wruFXRgmnyW-2cc8B3Y4udRuaAw--I9Fk2DYYe9Kti8,532
167
+ diffeval/tasks/suites/core.yaml,sha256=4lTKfD2EAr9AgLFGP9iT2PSoBOVAfjzzjrWn5b-fTwQ,375
168
+ diffeval/tasks/suites/references/core/blue_sphere.png,sha256=HXEojB2OGFxJp3EpdMQbhZ12keR4UZcKOTfbRv7lFGs,329
169
+ diffeval/tasks/suites/references/core/green_triangle.png,sha256=9lOmS1eEURUYpBKIzP9dzw5fgb99QbwUiWioge9V-94,294
170
+ diffeval/tasks/suites/references/core/red_cube.png,sha256=WKJT2u5KmCuRS6hBLtl4qcDnAC1XQgBGkTeQ6HVkrDc,187
171
+ diffeval/tasks/suites/references/core/yellow_star.png,sha256=rCrK1xlMS51mwP3E5MiFgDdaKttHtxoRTOtNx3ZQix8,397
172
+ diffeval/types/__init__.py,sha256=HIwvdy9hKN_v6wi2jBSTj2Rfpo_SE_fWt3VC2kUaEJ8,55
173
+ diffeval/types/context.py,sha256=Hn2MHmsB8dZmmsVmH9EWxoojGQo4ZX6mW6fZYEKYLHw,331
174
+ diffeval/types/prompt.py,sha256=OwG7zmgQfqcnZxEhkHgc47ZQ5xFBHxFYCVnikidJ0jg,181
175
+ diffeval/types/request.py,sha256=cBr8q-ehdgtD-TrdB6y_kB4_1Ob6_Vznm66o5OLXeHA,266
176
+ diffeval/types/result.py,sha256=HRrYqQrnLIDPIOTr5kq4_fZ_c5bm0VGlNXIUyYERb5M,266
177
+ diffeval/types/result_rules.py,sha256=khgbvkaOoTMh5bHEMIoLGtDQdXOF-pmaYPxqQOWa9bM,487
178
+ diffeval/types/sample.py,sha256=Ri5OFIqML6J33KuAU1F7N3ZJv9mjRpmHXx0qWA67M5Q,302
179
+ diffeval/types/suite.py,sha256=mtJq7x4xmqw84TKMTVtTIRzqFlEk-SqYZFOlVgLv9EU,466
180
+ diffeval-0.1.0.dist-info/licenses/LICENSE,sha256=6iwF4Dfzd9-RiXgnsNEc3Y8kjQL_9hxmg6lWYRIt5HE,10942
181
+ diffeval-0.1.0.dist-info/METADATA,sha256=Si2bAhdJLkr6w4twgaeq0e_DIr6kMo-hv0qJqEe7yBs,19237
182
+ diffeval-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
183
+ diffeval-0.1.0.dist-info/entry_points.txt,sha256=0nR7fAYKY0kCRbj4dkstDwH0bE10RmKcm7rx4Jaw6-k,264
184
+ diffeval-0.1.0.dist-info/top_level.txt,sha256=JELkY7mzlg3cjdeYySbydrAXy1f1icqx9mi6RjD0xOY,9
185
+ diffeval-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,6 @@
1
+ [console_scripts]
2
+ diffeval = diffeval.cli.main:main
3
+ diffeval-check-cmmd = diffeval.bench.cmmd_check:main
4
+ diffeval-coco30k = diffeval.bench.coco30k_cli:main
5
+ diffeval-coco30k-images = diffeval.bench.coco30k_images:main
6
+ diffeval-table = diffeval.bench.table_cli:main