Skip to content

BUG: Keep the real-CT test on the grid it shrinks to - #4

Merged
vboussot merged 1 commit into
mainfrom
test-real-ct-grid
Oct 3, 2026
Merged

vboussot merged 1 commit into
mainfrom
test-real-ct-grid

Conversation

@vboussot

@vboussot vboussot commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

ImpactConvexAdam.RealLungCTCoarseInitThenAdamRefines times out on macOS on main (two runs out of the last three; the third passed at 1454 s of the 1500 s allowed).

The test shrinks its lung CT pair by 3 to stay light on a CPU and asked for features at a voxel size of 1 mm. Since #2 the fine stage resamples the images to that voxel size itself, so the model saw the shrunk pair (4.1 x 4.1 x 7.5 mm) at 1 mm again, about 126 times the voxels. Measured on Linux with the 0.1.6 wheel, the model's convolutions cost 2.44 s at 1 mm against 0.016 s on the grid as it is, for the same number of calls. In CI the test went from 7 s to 40 s on Linux and Windows, and from 3.8 s to 1400-1500 s on macOS.

A voxel size of 0 takes the grid as it is, which is the workload the test had before #2. The library is unchanged.

The test shrinks its lung CT pair by 3 to stay light on a CPU, and asked
for features at a voxel size of 1 mm. That voxel size is honoured since
the fine stage resamples the images itself, so the model saw the pair at
1 mm again, over a hundred times the voxels. The test went from 7 s to
40 s on Linux and Windows and from 4 s to 1400-1500 s on macOS, where it
timed out on main two runs out of three. A voxel size of 0 takes the grid
as it is, the workload the test had before.
@vboussot
vboussot merged commit d41ce60 into main Oct 3, 2026
5 checks passed
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.

1 participant