Skip to content

Implementation of the regularization loss #109

Open
@adosar

Description

@adosar

Hello and congrats for this nice repo!

I was looking in the implementation of the regularization loss and I don't know if it matches the original paper.

In the feature_transform_regularizer:

loss = torch.mean(torch.norm(torch.bmm(trans, trans.transpose(2,1)) - I, dim=(1,2)))

Why not:

loss = torch.mean(torch.norm(torch.bmm(trans, trans.transpose(2,1)) - I, dim=(1,2)).pow(2))

In the original paper they use:
$L_\text{reg} = ||I - AA^T||^2$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions