-
Notifications
You must be signed in to change notification settings - Fork 60
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
Update cucim.skimage API to match scikit-image 0.19 #190
Update cucim.skimage API to match scikit-image 0.19 #190
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll also need to get the scikit-image
version updated in the integration
repository below. @grlee77, can you open up a PR for this?
@jakirkham , @gigony : I think I now have all the updates from scikit-image 0.19 in this one PR. Aside from the basic updates, I did add four new functions introduced in 0.19 that were possible purely with the CuPy API:
Aside from the updates to 0.19, I also ran |
@ajschmidt8, done in PR ( rapidsai/integration#414 ) :) |
tests are close to passing now. It looks like there was one test case in There were a handful of other failures that look unrelated to the PR. e.g. for the centos7 case I saw
|
So I opened PR ( #198 ) to test CI with a trivial blank line addition. However it did not show the same failures. Perhaps there is more still going on here? |
implements the channel_axis argument from scikit-image 0.19 * drop alpha argument from gray2rgb (deprecated) * remove deprecated grey2rgb and rgb2grey * label2rgb: bg_label default changed * ENH: new saturation argument to label2rgb
raise error in structure_similariy when input images are smaller than win_size
200318d
to
1611f69
Compare
Although the PR was made against branch-22.02, I must have started this from branch-21.12 (at least, running |
Looks like we are still seeing the issue on CI. Noticed the PR includes some tricks around lazy loading, defining Saw some changes around |
@gigony would you be able to take a look as well? There are some |
Okay, it passed now. I susupect it was possibly the @gigony, would specifically want to know if you think we should keep the change in c8177c0 that added lazy loading to the top-level cucim (I accidentally commited that in the same commit with the flake8 fix). If not we can revert the change to |
One other option we could potentially do on CI is to run one case with environment variable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
It was good to see how lazy module works :)
Left minor comments.
|
||
|
||
@pytest.mark.parametrize('dtype', [cp.uint8, cp.float32, cp.float64]) | ||
@pytest.mark.parametrize('dtype', [np.uint8, np.float32, np.float64]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder why some code is changed to cp.uint8
and some other code is changed to np.uint8
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will can change it to cp.uint8
for consistency. In practice it won't matter since cp.uint8 is np.uint8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated in 8438d64
I think it is okay and having it would make it easier to restruct modules under |
In practice cupy just imports the numpy dtypes so they are equivalent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving ops-codeowner
file changes
@gpucibot merge |
This PR builds on top of #189 and introduces new deprecations as in scikit-image 0.19.
closes #98
Specifically:
selem
->footprint
grey
->gray
iterations
->num_iter
max_iter
->max_num_iter
min_iter
->min_num_iter