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

Fast inference for large files with several classes #2540 #2545

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pooya-mohammadi
Copy link

When doing inference on large files with large number of classes the following code section blocks the code for up too 600 seconds:

            for c in range(data.shape[0]):
                reshaped_final[c] = resize_fn(data[c], new_shape, order, **kwargs)

in preprocessing.resampling.default_resampling.py and func: resample_data_or_seg.
If someone does not need the probabilities they can skip this section by only sending the segmentation array which is very fast.

Solving issue #2540

@pooya-mohammadi
Copy link
Author

Or the depicted code snippet can be done in a multiprocessing manner.

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

Successfully merging this pull request may close these issues.

1 participant