Skip to content

About pre-computed map for other model #9

@Qiublack

Description

@Qiublack

Thanks for your nice work.
When I use the eval.py file to evaluate a pre-computed map for another model, I get the following error:

Traceback (most recent call last):
File "D:/1_code/1Net/eval.py", line 32, in
FM.step(pred=pred, gt=mask)
File "D:\Anaconda3\envs\pytorch\lib\site-packages\py_sod_metrics\sod_metrics.py", line 67, in step
adaptive_fm = self.cal_adaptive_fm(pred=pred, gt=gt)
File "D:\Anaconda3\envs\pytorch\lib\site-packages\py_sod_metrics\sod_metrics.py", line 84, in cal_adaptive_fm
area_intersection = binary_predcition[gt].sum()
IndexError: boolean index did not match indexed array along dimension 1; dimension is 700 but corresponding boolean dimension is 702

could you tell what problems in me my steps.

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