Skip to content

nn.Identity() Impact model accuracy #1247

Open
@mi-luo

Description

@mi-luo

I try to add a Identity like this :
class Iden(nn.Module): def __init__(self, c1, c2): super(Iden, self).__init__() self.conv = nn.Identity() def forward(self, x): x = self.conv(x) return x
it's just add a placehoder, In theory, it will not affect the accuracy of the model, but In our experiment, it greatly affected the accuracy of the model。 model mAE score was 2.14e-05 but got 0.0095 when we dont add the nn.Identity on the first epoch

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