-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Make transforms optional #4190
Make transforms optional #4190
Conversation
Signed-off-by: Behrooz <[email protected]>
Hi @drbeh , Thanks for raising this discussion. Thanks. |
Hi @Nic-Ma, thanks for your reply. I see your point but what if the user want to cache the images (without any transform) to save the IO time? In pathology that loading patched are very costly, one may want to use smart cache dataset even without any transform. |
Hi @drbeh , Thanks for your explanation. Thanks in advance. |
@Nic-Ma, |
Hi @drbeh , I think we already set Thanks. |
I'm trying to give you an idea where it is possible to need caching data without having a transform. Maybe it's easier to discuss it online. |
After some discussion, here are my final comments:
data = WSIPatchDataset(..., transform=None)
cachedata = SmartCacheDataset(data=data, transform=None, replace_rate=0.2)
@wyli @ericspod Do you have any other opinions? Thanks in advance. |
Hi @drbeh , And I think maybe it's better to add What do you think? Thanks. |
Signed-off-by: Behrooz <[email protected]>
Signed-off-by: Behrooz <[email protected]>
Signed-off-by: Behrooz <[email protected]>
We can do that but it's the same for Line 65 in 05b9d31
Isn't better to have the same thing here? |
Signed-off-by: Behrooz <[email protected]>
Signed-off-by: Behrooz <[email protected]>
Signed-off-by: Behrooz <[email protected]>
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.
Thanks, it looks good to me. I'll merge this once this is fixed #4200
/build |
* Make all transforms optional Signed-off-by: Behrooz <[email protected]>
Description
This PR makes the transform argument in the existing datasets optional (
CacheDataset
,SmartDataset
, etc.). I believe the user should be able to use these datasets without providing a transform.Status
Ready
Types of changes