Skip to content

Count method is different from the original code in testing #13

Description

@JimWang97

Hi,
thanks for sharing the code, but I find that there are some differences.

In your code, you sum the GT density map as the GT count. But in the original testing code provided by the xhp, the GT count is obtained from GT_mat.

#xhp
gt_count = mat['all_num']

# your code
gt_count = sample['dmap'].numpy().sum()

These two values are different. For example, the count num of IMG_1.png in SHB testing set is 23, but the sum of density map is 22.32398.

This will lead to the deviation of MAE and MSE.

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