-
Notifications
You must be signed in to change notification settings - Fork 3
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
Image processing with stardist #11
Comments
Can you provide me more context on the configurations you used and the size of the image to be able to reproduce your error? It seems like an issue on the Stardist side with the patching/restitching steps. Here is the part of the code that runs Stardist on the image: https://github.com/Sanofi-Public/enact-pipeline/blob/c1282932af1f73e825a5afdf4ca5a27ddc64a197/src/enact/pipeline.py#L317C13-L327C14
I suggest you change the |
Hi, These are the parameters I am using.
The size of the image is 4.5G in bigtiff format. I am experiencing another issue - Since I am running the job on HPC, I dont have the ability to access internet and the job fails with connection timeout error. Can we manually download the models and give access to them from configuration settings?
Thanks, |
Hi, I am ex=ncountering this error while stardist image processing. Any idea what might be causing this error?
Traceback (most recent call last):
File "/rsrch5/home/neuro_rsrch/apirani/2024_11_07_Enact_Demo/enact_915422.py", line 9, in
so_hd.run_enact()
File "/home/apirani/.local/lib/python3.10/site-packages/enact/pipeline.py", line 999, in run_enact
cell_labels, cell_polys = self.segment_cells(image=wsi_norm)
File "/home/apirani/.local/lib/python3.10/site-packages/enact/pipeline.py", line 318, in segment_cells
labels, polys = self.stardist_model.predict_instances_big(
File "/home/apirani/.local/lib/python3.10/site-packages/stardist/models/base.py", line 930, in predict_instances_big
blocks = BlockND.cover(img.shape, axes, block_size, min_overlap, context, grid)
File "/home/apirani/.local/lib/python3.10/site-packages/stardist/big.py", line 448, in cover
cover_1d = [Block.cover(*args) for args in zip(shape, block_size, min_overlap, context, grid)]
File "/home/apirani/.local/lib/python3.10/site-packages/stardist/big.py", line 448, in
cover_1d = [Block.cover(args) for args in zip(shape, block_size, min_overlap, context, grid)]
File "/home/apirani/.local/lib/python3.10/site-packages/stardist/big.py", line 186, in cover
assert 0 <= min_overlap+2context < block_size <= size
AssertionError
The text was updated successfully, but these errors were encountered: