Skip to content

Codex/readme table library headers#66

Merged
ternaus merged 2 commits into
mainfrom
codex/readme-table-library-headers
May 11, 2026
Merged

Codex/readme table library headers#66
ternaus merged 2 commits into
mainfrom
codex/readme-table-library-headers

Conversation

@ternaus
Copy link
Copy Markdown
Contributor

@ternaus ternaus commented May 11, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 11, 2026 15:42
Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @ternaus, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@ternaus ternaus merged commit 9fd6be3 into main May 11, 2026
4 checks passed
@ternaus ternaus deleted the codex/readme-table-library-headers branch May 11, 2026 15:44
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b5b1c5dafd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1049 to +1050
for key, value in load_results_dir(VIDEO_RESULTS).items()
if value["media"] == "video" and value["library"] != "albumentations_mit"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid comparing video artifacts from different machines

When the generated paper CSV has no video rows (as in the checked-in docs/paper_data/all_results.csv, whose video16f_* CSVs are header-only), this fallback builds the README video table from output_videos. Those JSON files are standalone micro runs from different environments (AlbumentationsX on macOS arm/50 videos, Kornia/TorchVision on an RTX 4090/200 videos), so the resulting speedup and bold winner cells compare hardware and workloads rather than the selected benchmark regimes above. This should either omit the video table until same-regime published rows exist or require comparable video artifacts.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the README’s “Benchmark Results” presentation to use scenario-specific columns with library headers (and adds a generated video table), with supporting changes in the paper figure/table generator script.

Changes:

  • Adjusts scripts/paper/generate_figures_and_insights.py to generate “Result Tables” with per-column library headers and to optionally populate the video table from output_videos/ via tools.compare.
  • Restructures README.md to include the new “Benchmark Results” TOC and updated generated tables/wording (including video table content).
  • Renames the winner-counts appendix figure label to “Figure 5” in both generator and README output.

Reviewed changes

Copilot reviewed 2 out of 7 changed files in this pull request and generated 3 comments.

File Description
scripts/paper/generate_figures_and_insights.py Changes README table generation to use fixed (regime, library) columns and adds a fallback that renders video tables from output_videos/ via tools.compare.
README.md Replaces the previous benchmark-table sections with the new “Benchmark Results” structure and updated generated tables.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
@@ -512,33 +317,7 @@ For AlbumentationsX, each clip is a NumPy array `(T, H, W, C)`. The built-in spe
| WaterRefraction | **22 ± 0** | - | - | N/A |
| ZoomBlur | **4 ± 0** | - | - | N/A |

Comment on lines +24 to +26
sys.path.insert(0, str(ROOT))
from tools.compare import format_comparison_table, load_results_dir

Comment on lines +1079 to 1093
active_columns = [
(regime, library)
for regime, library in columns
if ((subset["regime"] == regime) & (subset["library"] == library)).any()
]
headers = [
"Transform",
*[
str(subset.loc[subset["regime"] == regime, "regime_label"].iloc[0])
for regime in regimes
if (subset["regime"] == regime).any()
f"{LIBRARY_DISPLAY.get(library, library)}<br>{subset.loc[subset['regime'] == regime, 'regime_label'].iloc[0]}"
for regime, library in active_columns
],
]
active_regimes = [regime for regime in regimes if (subset["regime"] == regime).any()]
blocks.append("| " + " | ".join(headers) + " |")
blocks.append("| " + " | ".join(["---", *["---:" for _ in active_regimes]]) + " |")
blocks.append("| " + " | ".join(["---", *["---:" for _ in active_columns]]) + " |")
for transform in sorted(subset["display_transform"].unique()):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants