Skip to content

Question about LPIPS and SSIM #8

@theodoruszq

Description

@theodoruszq

For LPIPS

When evaluating LPIPS metric, the model inference result will be different for each instance for there existing random init weights.

I don't know it is the precision problem or not, keep the input same and torch.load the same weight again and run inference, the result value is different.

Here is my screencaption of two different instances
image

The two values should be the same, but they are not. After set manual seed to 0, they are amost identical.

image

For SSIM

the code ssim_all[v] += ssim(cur_gt_frame, cur_comp_frame, multichannel=True) may be better to change as ssim_all[v] += ssim(cur_gt_frame, cur_comp_frame, multichannel=True, data_range=1), because in the skimage library, it considers np.float32 as (-1, 1) range, but actually it is (0, 1) in our situation.

Of course, the minor problems do not affect the conclusions in the paper~

Thank you~

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