Skip to content

Gradients not tracked through evaluation_from_torch #2

@bitanath

Description

@bitanath

Hi,

I noticed gradients are not tracked through evaluation_from_torch. Is this expected behavior?

tensor1.requires_grad = True
tensor2.requires_grad = True

SAMScore_Evaluation = samscore.SAMScore(model_type = "vit_b" )
samscore_result = SAMScore_Evaluation.evaluation_from_torch(source=tensor1.unsqueeze(0),generated=tensor2.unsqueeze(0))

Samscore result is tensor([0.8888]) without the gradients

Am I doing something wrong here?

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