StagingBench measures architecture drift by comparing a staged output with its source photo. Alignment brings the output into the source framing before comparison. The raw score comes from the comparison before alignment. The reported drift is the value readers see. Lower drift means features such as walls, windows, and fixtures stayed closer to their source positions.
Measure the change within each output
Subtract reported drift from raw drift to see how much the measured difference changed. A positive value means the reported score was lower than the raw score. A negative value means it was higher. The comparison uses two measurements of the same output, so the staging itself is identical on both sides of the subtraction.
The script groups successful automatic alignments from rooms 02 to 10 and summarizes room 01 on its own. The source has five room 01 flags marked True and eight blank flags. The embedded data uses None for all room 01 rows as a grouping convention for this calculation. A False flag in the other rooms means automatic alignment failed and the reported drift uses the unaligned score. Those rows get a separate count. Decimal arithmetic keeps comparisons exact at the precision of the supplied scores.
from decimal import Decimal from statistics import mean, median rows = [ ("T01", 1, 16.2, 15.3, None), ("T01", 2, 32.9, 32.9, False), ("T01", 3, 9.2, 10.4, True), ("T01", 4, 40.1, 40.1, False), ("T01", 5, 13.7, 18.8, True), ("T01", 6, 43.4, 43.4, False), ("T01", 7, 41.0, 42.2, True), ("T01", 8, 11.6, 11.9, True), ("T01", 9, 13.1, 13.1, False), ("T01", 10, 22.7, 28.7, True), ("T02", 1, 11.0, 9.9, None), ("T02", 2, 24.1, 26.1, True), ("T02", 3, 21.7, 22.4, True), ("T02", 4, 56.5, 56.5, False), ("T02", 5, 21.4, 22.3, True), ("T02", 6, 26.2, 30.7, True), ("T02", 7, 35.1, 35.1, False), ("T02", 8, 17.4, 18.3, True), ("T02", 9, 9.2, 9.2, False), ("T02", 10, 28.0, 28.0, False), ("T03", 1, 28.2, 40.6, None), ("T03", 2, 30.6, 32.5, True), ("T03", 3, 29.7, 30.6, True), ("T03", 4, 29.0, 29.0, False), ("T03", 5, 15.5, 16.4, True), ("T03", 6, 21.1, 23.4, True), ("T03", 7, 18.0, 29.6, True), ("T03", 8, 12.6, 60.0, True), ("T03", 9, 14.9, 14.9, False), ("T03", 10, 20.2, 23.7, True), ("T04", 1, 27.1, 37.6, None), ("T04", 2, 26.6, 27.7, True), ("T04", 3, 33.5, 34.5, True), ("T04", 4, 28.8, 28.8, False), ("T04", 5, 22.5, 21.0, True), ("T04", 6, 21.3, 19.6, True), ("T04", 7, 24.4, 27.8, True), ("T04", 8, 23.5, 54.1, True), ("T04", 9, 26.9, 26.9, False), ("T04", 10, 26.6, 29.5, True), ("T05", 1, 29.4, 27.9, None), ("T05", 2, 6.1, 6.0, True), ("T05", 3, 23.6, 24.7, True), ("T05", 4, 61.5, 61.5, False), ("T05", 5, 36.2, 66.8, True), ("T05", 6, 57.3, 57.3, False), ("T05", 7, 30.4, 32.3, True), ("T05", 8, 22.0, 52.9, True), ("T05", 9, 11.4, 11.4, False), ("T05", 10, 19.9, 22.2, True), ("T06", 1, 18.1, 24.1, None), ("T06", 2, 23.3, 33.0, True), ("T06", 3, 21.0, 40.5, True), ("T06", 4, 33.3, 60.7, True), ("T06", 5, 14.8, 33.5, True), ("T06", 6, 22.5, 34.9, True), ("T06", 7, 35.2, 38.3, True), ("T06", 8, 27.4, 49.4, True), ("T06", 9, 10.2, 10.2, False), ("T06", 10, 21.2, 36.7, True), ("T07", 1, 25.4, 27.0, None), ("T07", 2, 33.6, 35.7, True), ("T07", 3, 22.9, 24.1, True), ("T07", 4, 50.4, 50.4, False), ("T07", 5, 38.0, 38.1, True), ("T07", 6, 34.9, 52.7, True), ("T07", 7, 46.3, 57.4, True), ("T07", 8, 38.7, 51.6, True), ("T07", 9, 20.4, 20.4, False), ("T07", 10, 28.2, 29.2, True), ("T08", 1, 11.4, 12.6, None), ("T08", 2, 31.3, 32.3, True), ("T08", 3, 26.3, 27.5, True), ("T08", 4, 15.1, 16.4, True), ("T08", 5, 34.9, 33.2, True), ("T08", 6, 16.6, 16.0, True), ("T08", 7, 23.5, 25.1, True), ("T08", 8, 9.7, 10.2, True), ("T08", 9, 5.7, 5.7, False), ("T08", 10, 24.5, 25.4, True), ("T09", 1, 13.3, 10.3, None), ("T09", 2, 11.6, 10.7, True), ("T09", 3, 26.4, 27.6, True), ("T09", 4, 10.4, 10.4, False), ("T09", 5, 19.8, 12.9, True), ("T09", 6, 26.0, 17.2, True), ("T09", 7, 18.9, 18.3, True), ("T09", 8, 7.8, 5.8, True), ("T09", 9, 23.3, 23.3, False), ("T09", 10, 21.0, 18.4, True), ("T10", 1, 10.6, 9.0, None), ("T10", 2, 27.8, 28.8, True), ("T10", 3, 7.5, 7.8, True), ("T10", 4, 6.4, 5.7, True), ("T10", 5, 7.8, 8.6, True), ("T10", 6, 13.7, 15.2, True), ("T10", 7, 9.7, 10.6, True), ("T10", 8, 8.9, 9.1, True), ("T10", 9, 3.1, 3.1, False), ("T10", 10, 17.0, 17.3, True), ("T11", 1, 52.8, 54.5, None), ("T11", 2, 27.1, 29.0, True), ("T11", 3, 61.3, 61.3, False), ("T11", 4, 54.5, 54.5, False), ("T11", 5, 7.2, 10.7, True), ("T11", 6, 9.7, 33.3, True), ("T11", 7, 9.2, 10.0, True), ("T11", 8, 35.5, 49.7, True), ("T11", 9, 7.7, 7.7, False), ("T11", 10, 26.6, 41.4, True), ("T12", 1, 18.9, 21.3, None), ("T12", 2, 25.4, 26.1, True), ("T12", 3, 19.1, 19.6, True), ("T12", 4, 15.2, 15.6, True), ("T12", 5, 8.0, 8.9, True), ("T12", 6, 16.3, 25.5, True), ("T12", 7, 42.1, 43.5, True), ("T12", 9, 11.8, 11.8, False), ("T12", 10, 15.7, 19.0, True), ("T13", 1, 12.7, 15.5, None), ("T13", 2, 16.9, 17.2, True), ("T13", 3, 4.0, 4.3, True), ("T13", 4, 52.8, 52.8, False), ("T13", 5, 18.8, 12.6, True), ("T13", 6, 12.6, 22.2, True), ("T13", 7, 7.3, 8.0, True), ("T13", 8, 41.5, 55.0, True), ("T13", 9, 2.4, 2.4, False), ("T13", 10, 57.4, 57.4, False), ] for label, flag in (("Rooms 02 to 10, aligned True", True), ("Room 01", None)): changes = [ (Decimal(str(raw)) - Decimal(str(drift)), tool, room) for tool, room, drift, raw, aligned in rows if aligned is flag ] differences = [change for change, _, _ in changes] largest, tool, room = max(changes, key=lambda row: row[0]) print(f"{label} ({len(changes)} rows)") print(f"Mean: {mean(differences):.2f}") print(f"Median: {median(differences):.2f}") print(f"Raw higher: {sum(change > 0 for change in differences)}") print(f"Raw equal: {sum(change == 0 for change in differences)}") print(f"Raw lower: {sum(change < 0 for change in differences)}") print(f"Largest: {largest:.2f} ({tool}, room {room:02d})") print(f"Aligned False: {sum(aligned is False for _, _, _, _, aligned in rows)}") Rooms 02 to 10, aligned True (87 rows) Mean: 5.17 Median: 1.20 Raw higher: 74 Raw equal: 0 Raw lower: 13 Largest: 47.40 (T03, room 08) Room 01 (13 rows) Mean: 2.35 Median: 1.60 Raw higher: 8 Raw equal: 0 Raw lower: 5 Largest: 12.40 (T03, room 01) Aligned False: 29 Read the median alongside the mean
Among the 87 automatically aligned outputs from rooms 02 to 10, the mean change was 5.17 points and the median was 1.20. The median describes the middle of the observed changes. The mean is more sensitive to large changes, including the 47.40-point drop for T03 in room 08. The sign counts show the direction separately. Most raw scores were higher, while 13 were lower. Those counts include small changes. Differences of about 3 points or less fall within measurement noise.
Room 01 had a mean change of 2.35 points and a median of 1.60. That group describes one source photo across the 13 tools, while the successful alignments in the other group span several source photos. The two means therefore summarize different sets of observations. The 29 failures also matter when reading the broader results, because their reported scores come from the original unaligned comparisons.
Alignment and framing have separate roles in the benchmark. A successful alignment supplies a way to compare the images in a common frame. The framing check records a separate outcome, and the reported drift measures the architectural differences after any correction used for scoring. Reading those alongside the raw score helps explain why the same staged output can produce substantially different measurements before and after alignment.