-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LVAE dataset: add MultiFileDset (#223)
### Description - **What**: This is a follow-up on updating the datasets from the Disentangle repo (reference commit `57cad67` from the main branch), adding the `MultiFileDset` class, `TilingMode` and `EmptyPatchFetcher` - **Why**: The `MultiFileDset` is necessary for the datasets in the paper - **How**: Copy/paste the code from the Disentangle repo with minimal changes ### Changes Made - **Added**: - from the Disentangle repo: - copied `MultiFileDset` class and related classes - added `TilingMode` and updated related code in `MultiChDloader` - copied `EmptyPatchFetcher` - copied several new parameters for `MultiChDloader` - copied code for flips (using _Albumentations_) - added "load_data_fn" parameter to dataset classes to pass the data loading logic from different experiments - added lists of the dataset types needed for the paper in the `data_utils.py` - added a simple test to test the `MultiFileDset` object initialization - **Modified**: - moved dataset configs into `lvae_training/dataset/configs` - moved `GridIndexManager` and `IndexSwitcher` to separate files in `lvae_training/dataset/utils` - **Removed**: - removed code related to the BioSR dataset from `data_utils.py` and tests --- **Please ensure your PR meets the following requirements:** - [x] Code builds and passes tests locally, including doctests - [x] New tests have been added (for bug fixes/features) - [ ] Pre-commit passes - [ ] PR to the documentation exists (for bug fixes / features) --------- Co-authored-by: Joran Deschamps <[email protected]>
- Loading branch information
1 parent
1877efd
commit 59fa2dd
Showing
20 changed files
with
1,367 additions
and
1,006 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from .multich_dataset import MultiChDloader | ||
from .lc_dataset import LCMultiChDloader | ||
from .multifile_dataset import MultiFileDset | ||
from .config import DatasetConfig | ||
from .types import DataType, DataSplitType, TilingMode | ||
|
||
__all__ = [ | ||
"DatasetConfig", | ||
"MultiChDloader", | ||
"LCMultiChDloader", | ||
"MultiFileDset", | ||
"DataType", | ||
"DataSplitType", | ||
"TilingMode", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.