Skip to content

depth_align_embs is not saved or optimized #58

Description

@LIJUNCHENG001

According to the paper: we apply the learnable queries [Qt1, Qt2, Qt3] corresponding to three-view operational images.
However, in the code, depth_align_embs is defined as:

self.depth_align_embs = nn.Parameter(torch.randn(...)).to(torch.bfloat16)

Parameter.to() returns a regular Tensor, so it is absent from named_parameters(), optimizer groups, and checkpoints. It is randomly
recreated during loading, making depth output seed-dependent.

I have checked the pretrained model weights, depth_align_embs is indeed not saved.

Is this a bug or an intended design?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions