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

Add support to CuPy as input and other changes related. #18

Merged
merged 3 commits into from
Jun 19, 2022

Conversation

jcfaracco
Copy link
Contributor

This series just add support to CuPy input using Union structure. It also uses some functions dedicated to process image using a CPU only. For this all data can stay in GPU.

This patchset fixes issue #17.

Scikit-image deprecated both methods: skimage.feature.graycomatrix and
skimage.feature.graycoprops. The project replaced them to
skimage.feature.greycomatrix and skimage.feature.greycoprops. It is just
a new name convention. That's why this commit just introduce an alias
for older releases.

Signed-off-by: Julio Faracco <[email protected]>
There is a problem when you pass a image which is already a cupy type.
This commit just introduce the union type for most of the functions and
types. It also includes cuCIM from NVIDIA RAPIDS which is the new
implementation of cuimg, a cupy project that reflects scikit-image.

Signed-off-by: Julio Faracco <[email protected]>
This commit just adds some test cases to cover cupy inputs. The only
exception is the function test_output_match_cp(). It needs to be
converted to numpy because pytest.approx only supports numpy. As it is
just a test case, there is no problem to get data from GPU to test.

Signed-off-by: Julio Faracco <[email protected]>
@Eve-ning Eve-ning linked an issue Jun 19, 2022 that may be closed by this pull request
@Eve-ning Eve-ning merged commit aa4ebb5 into Eve-ning:master Jun 19, 2022
@Eve-ning
Copy link
Owner

@jcfaracco Thanks for doing this, been extremely busy these days.
This is much more than I expected, thanks for sharing your knowledge!

@jcfaracco
Copy link
Contributor Author

Thanks @Eve-ning. I also appreciate your changes after mine. Sorry... I simply forgot to change the documentation.

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.

Allow processing data directly from cupy input.
2 participants