cerberus icon indicating copy to clipboard operation
cerberus copied to clipboard

bug in def process_single_file from /infer /wsi.py

Open YOOHYOJEONG opened this issue 2 years ago • 0 comments

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.

YOOHYOJEONG avatar Jan 04 '24 05:01 YOOHYOJEONG