-
Notifications
You must be signed in to change notification settings - Fork 50
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
Downsampling OME-TIFF with PyVips and Generating Patches for Deep Learning #509
Comments
Hello again, I suppose these are pyramidal TIFFs, is that right? In which case you can downsample by using a smaller pyramid layer. For example:
So page 0 is the full-res image and subsequent pages get smaller by a factor of two. You can just pick the page which is best for your network. The best way to make patches depends on your network. Smaller than about 32x32, it's usually fastest to use Will you be making derivatives as well? Eg. rotate and flip to make more training data? |
Thank you so much for the quick reply
|
There's some sample code here for fetch and crop: |
Hi,
I am currently working with a large OME-TIFF file (2_CD8.ome.tiff) that is quite high in resolution (9.59 GiB, Shape: (110319, 53873, 3)). For my downstream deep learning tasks, I need to downsample this image to a more manageable resolution.
I am using the following PyVips code to downsample:
I would like to know if there are any improvements or alternative methods to downsample the OME-TIFF file. Additionally, I need guidance on how to generate patches from the downsampled image for deep learning purposes.
Thank you for your assistance!
Warm regards,
Aobo Tan
The text was updated successfully, but these errors were encountered: