Skip to content

Conversation

@bhashemian
Copy link
Member

Description

This PR updates the cucim dependency to support cuCIM Transforms.

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).

wyli
wyli previously approved these changes Sep 21, 2021
Copy link
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@bhashemian
Copy link
Member Author

@wyli I've been looking into this and it does not happen on my local with the same version of cucim. I re-ran the test to see if it persists. I'll further look into it once the tests are done.

@bhashemian
Copy link
Member Author

bhashemian commented Sep 21, 2021

I can confirm that there is no API changes. There is not any issue with our tests on actual TIF files. The issue is when we are using simple uncompressed TIF files that are crated using PIL. I'm contacting cucim development team to find a way out for our cucim tests.

@bhashemian
Copy link
Member Author

bhashemian commented Sep 22, 2021

@wyli as you mentioned there are two issues here:

  1. AttributeError: module 'cucim' has no attribute 'CuImage' https://github.com/Project-MONAI/MONAI/pull/2987/checks?check_run_id=3667531299
  2. RuntimeError: This format (compression: 1, sample_per_pixel: 1, planar_config: 1, photometric: 1) is not supported yet!. https://github.com/Project-MONAI/MONAI/pull/2987/checks?check_run_id=3667530814#step:7:15641

The first one should be resolved by the new commits here. I had a meeting with cuCIM team and it seems the second issue is related to CUDA version, where cuCIM works with CUDA>11.0, thus #2999.

@wyli
Copy link
Contributor

wyli commented Sep 22, 2021

closing this in favor of #3006

@wyli wyli closed this Sep 22, 2021
auto-merge was automatically disabled September 22, 2021 16:37

Pull request was closed

rapids-bot bot pushed a commit to rapidsai/cucim that referenced this pull request Sep 30, 2021
)

- Add `cucim.is_available()` method

Users can query if a specific module is available or not.

For example, if cucim.clara module which requires C shared library is not available:
```
>>> import cucim
>>> cucim.is_available()
False
>>> cucim.is_available("skimage")
True
>>> cucim.is_available("core")
True
>>> cucim.is_available("clara")
False
```

Resolves #104
Supports Project-MONAI/MONAI#2987

Authors:
  - Gigon Bae (https://github.com/gigony)

Approvers:
  - Gregory R. Lee (https://github.com/grlee77)
  - https://github.com/jakirkham

URL: #107
rapids-bot bot pushed a commit to rapidsai/cucim that referenced this pull request Sep 30, 2021
Due to #17 ([BUG] Compression scheme 33003 tile decoding is not implemented), #19 (Check compression method used in the image) was merged so cuCIM has been handling only particular formats (only jpeg/deflate-compressed image).

If the input TIFF image has no-compressed RAW tile image, cuCIM showed the following error message:

> RuntimeError: This format (compression: 1, sample_per_pixel: 1, planar_config: 1, photometric: 1) is not supported yet!. https://github.com/Project-MONAI/MONAI/pull/2987/checks?check_run_id=3667530814#step:7:15641

This patch is to support raw RGB tiled TIFF with fast-path, re-allowing non-compressed image with slow-path (in case the input is not tiled RGB image).

This supports Project-MONAI/MONAI#2987.

Authors:
  - Gigon Bae (https://github.com/gigony)

Approvers:
  - Gregory R. Lee (https://github.com/grlee77)
  - https://github.com/jakirkham

URL: #108
@bhashemian bhashemian deleted the update-cucim-dep branch May 25, 2022 13:10
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.

2 participants