Skip to content

DiffusionModelEncoder output layer is set outside of the initiation and left out of trainable parameters and set to the wrong device #8577

Closed

Description

@virginiafdez

Describe the bug
This issue has been observed in the tutorials: Project-MONAI/tutorials#2030 (comment).

Expected behavior
The out layer should not be set in the forward loop because:

  • The device is wrong in this scenario
  • The parameters from this layer are not included in the optimizer trainable args.

Additional context
This was caused by fix #8514.

Activity

  1. self-assigned this
    on Sep 19, 2025
  2. added theissue type on Sep 19, 2025
  3. added a commit that references this issue on Sep 21, 2025
    cf5505a
  4. added 2 commits that reference this issue on Sep 29, 2025
    3c393cf
    cfed26b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GenerativeModelsIssues relating to generative modelsbugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions