What: Add function that creates tile information object using the GridIndexManager.
Why: It might be easier to use this function in the prediction pipeline if the different tiling approaches will be used, in particular the ShiftBoundary tile strategy.
How: Almost duplicates the first compute_tile_info function I wrote, just uses the data stored in GridIndexManager and uses the GridIndexManager.get_location_from_dataset_idx method.
Changes Made
Added: compute_tile_info_legacy to careamics/src/careamics/dataset/tiling/lvae_tiled_patching.py
Modified: Renamed variable tile_grid_coords to tile_grid_indices. This is to try to prevent misinterpretation.
Related Issues
Additional Notes and Examples
The TilingMode enum in the Disentangle repo is not in the current version of the dataset in CAREamics.
Description
GridIndexManager
.ShiftBoundary
tile strategy.compute_tile_info
function I wrote, just uses the data stored inGridIndexManager
and uses theGridIndexManager.get_location_from_dataset_idx
method.Changes Made
compute_tile_info_legacy
tocareamics/src/careamics/dataset/tiling/lvae_tiled_patching.py
tile_grid_coords
totile_grid_indices
. This is to try to prevent misinterpretation.Related Issues
Additional Notes and Examples
The
TilingMode
enum in the Disentangle repo is not in the current version of the dataset in CAREamics.Note: logic comes from here, mostly only variables have been renamed to match CAREamics naming scheme. https://github.com/ashesh-0/Disentangle/blob/ed99b2614a9e52b496947ccf157d3aaa8db52872/disentangle/analysis/stitch_prediction.py#L37-L66
Please ensure your PR meets the following requirements: