Skip to content

Fix GPU device and interface errors in models - #202

Merged
AnderBiguri merged 1 commit into
CambridgeCIA:mainfrom
cslht:fix/model-gpu-device-errors
Aug 6, 2026
Merged

Fix GPU device and interface errors in models#202
AnderBiguri merged 1 commit into
CambridgeCIA:mainfrom
cslht:fix/model-gpu-device-errors

Conversation

@cslht

@cslht cslht commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Five fixes in models:

  • LPD and cLPD registered learnable step sizes with closures capturing self, which kept models non-serializable; now register_buffer(..., persistent=False) so they move with .to() without entering the state dict.
  • cLPD set step_size=True for the dual step sizes (a typo); now step_size=None, which triggers the default initialization.
  • FBPConvNet passed geometry_parameters to LIONmodel.load(), but the method expects geometry; renamed so loading a saved model works.
  • DeepFBP and FusionFBP hardcoded torch.cuda.FloatTensor for buffer creation; now register_buffer(..., persistent=False), so they work on CPU and move with .to().

@cslht
cslht force-pushed the fix/model-gpu-device-errors branch from 096c804 to 4f6c3ce Compare August 6, 2026 09:24
@AnderBiguri
AnderBiguri merged commit b4d954e into CambridgeCIA:main Aug 6, 2026
1 check passed
cslht11 pushed a commit to cslht11/LION that referenced this pull request Sep 6, 2026
…rrors

Fix GPU device and interface errors in models
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