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

Error in slide-graph inference pipeline collab, when using pregenerate_grap=False #900

Open
cupcakes04 opened this issue Dec 17, 2024 · 0 comments

Comments

@cupcakes04
Copy link

  • TIA Toolbox version: 6.1
  • Python version: 3.10.15
  • Operating System: Windows 11 -- WSL 2

Description

(RuntimeError: dictionary changed size during iteration)
this multi-processing step error occurred when running the below notebook, but not using pre-generated graphs

https://colab.research.google.com/github/TissueImageAnalytics/tiatoolbox/blob/develop/examples/inference-pipelines/slide-graph.ipynb

What I Did

inst_segmentor = NucleusInstanceSegmentor(
        pretrained_model="hovernet_fast-pannuke",
        batch_size=16,
        num_postproc_workers=4,
        num_loader_workers=4,
    )

i commented the workers, and it works fine, but slower.

i have identified the issue to be the merging process of workers at models/engine/nucleu_instance_segmentor.py

@NucleusInstanceSegmentor._merge_post_process_results

here's the file for the runtime error output:
bug.txt

thank you for your time and work on the toolbox!

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