Skip to content

a question about loss_kg #6

@YaoShunyu19

Description

@YaoShunyu19

Hi,
In paper formula (3), L_kg compute the euclidean distance between w_i and w_clip_i.
And in code, L_kg=1-cosine_similarity(.,.).
Whether the two cases will affect the final effect?
Thanks!

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