Skip to content

bug in def process_single_file from /infer /wsi.py #33

@YOOHYOJEONG

Description

@YOOHYOJEONG

Hi.

I found a bug while trying to run_infer_wsi.py .

When using msk_file, the inst_info["box"] is returning the wrong coordinates.

Here(816 line at /infer /wsi.py),
if you add tissue_topleft ([cmin, rmin]) to the inst_info["box"] coordinates, the x and y coordinates are added in reverse.

In other words, you need to add [rmin, cmin] to the inst_info["box"] coordinates to get the right bbox coordinates.

So I changed this code (816 line at /infer /wsi.py -> inst_info["box"] += tissue_topleft) to " inst_info["box"] += tissue_topleft[::-1] ".

Can you check and fix it?

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