Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
YOOHYOJEONG opened this issue Jan 4, 2024 · 0 comments
Open

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

YOOHYOJEONG opened this issue Jan 4, 2024 · 0 comments

Comments

@YOOHYOJEONG
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant