-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Description Add support for cucim for `get_mask_edges` and `get_surface_distance`. This provides significant speedup in surface related metrics. Profiling on my system gave 3-20x speedups depending on the input shape: [---------------- (250, 250, 250) -----------------] | cpu | cuda 1 threads: ----------------------------------------- random()>0.2 | 26400.8 | 1306.3 random()>0.5 | 26411.8 | 1399.1 random()>0.8 | 29993.2 | 1009.5 create_spherical_seg_3d | 623.8 | 45.0 Times are in milliseconds (ms). [--------------- (100, 100, 100) ----------------] | cpu | cuda 1 threads: --------------------------------------- random()>0.2 | 1332.5 | 140.2 random()>0.5 | 1276.3 | 128.1 random()>0.8 | 1179.2 | 89.1 create_spherical_seg_3d | 111.7 | 44.0 Times are in milliseconds (ms). [---------------- (50, 50, 50) ----------------] | cpu | cuda 1 threads: ------------------------------------- random()>0.2 | 154.5 | 47.4 random()>0.5 | 166.7 | 39.3 random()>0.8 | 165.0 | 38.0 create_spherical_seg_3d | 77.2 | 44.4 Times are in milliseconds (ms). where create_spherical_seg_3d uses the same function from test_hausdorff_distance, and binarizes random array using `random(shape)>ratio`. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [x] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. --------- Signed-off-by: John Zielke <john.zielke@snkeos.com>
- Loading branch information
1 parent
21028ee
commit f140e06
Showing
9 changed files
with
262 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.