**Bug fix**
1. Fixed an error in dataset sampling during automatic splitting.
2. Fixed a memory leak when loading images in formats other than `.tif`.
**Changes:**
1. `shuffle` can now be used with both `pre-split` and `split` methods.
2. `offsets` can be specified as floating-point values for dynamic computation.
3. `size` and `offsets` now support mixed formats (i.e., both `int` and `float`).
4. F1 and mAP metrics are now computed by default in `micro`, `macro`, and `per_class` variations.
5. Classes `BoundaryExclusion` and `IntensityDiversification` have been renamed to follow the MONAI naming style.
6. Minor updates to the README for clarity and consistency.
@ -160,6 +160,8 @@ A brief overview of the key parameters you can adjust in your JSON config:
* `is_split` (bool): Whether your data is already split (`true`) or needs splitting (`false`, default).
* `is_split` (bool): Whether your data is already split (`true`) or needs splitting (`false`, default).
* `split` / `pre_split`: Directories for data when pre-split or unsplit.
* `split` / `pre_split`: Directories for data when pre-split or unsplit.
* `train_size`, `valid_size`, `test_size` (int/float): Size or ratio of your splits (e.g., `0.7`, `0.1`, `0.2`).
* `train_size`, `valid_size`, `test_size` (int/float): Size or ratio of your splits (e.g., `0.7`, `0.1`, `0.2`).
* `train_offset`, `valid_offset`, `test_offset` (int/float): The offset by which to take samples. When the data is not split, the samples are formed in the following order: `train`, `valid`, `test` (default: `0`, `0`, `0`).
* `shuffle` (bool): Flag for shuffling data when creating samples (default: `false`).
* `batch_size` (int): Number of samples per training batch (default: `1`).
* `batch_size` (int): Number of samples per training batch (default: `1`).
* `num_epochs` (int): Total training epochs (default: `100`).
* `num_epochs` (int): Total training epochs (default: `100`).
* `val_freq` (int): Frequency (in epochs) to run validation (default: `1`).
* `val_freq` (int): Frequency (in epochs) to run validation (default: `1`).
@ -168,6 +170,7 @@ A brief overview of the key parameters you can adjust in your JSON config:
* `test_dir` (str): Directory containing test data (default: `"."`).
* `test_dir` (str): Directory containing test data (default: `"."`).
* `test_size` (int/float): Portion or count of data for testing (default: `1.0`).
* `test_size` (int/float): Portion or count of data for testing (default: `1.0`).
* `test_offset` (int/float): The amount of data by which the sample will be shifted before forming (default: `0`).
* `shuffle` (bool): Shuffle test data before evaluation (default: `true`).
* `shuffle` (bool): Shuffle test data before evaluation (default: `true`).
> **Batch size note:** Validation, testing, and prediction runs always use a batch size of `1`, regardless of the `batch_size` setting in the training configuration.
> **Batch size note:** Validation, testing, and prediction runs always use a batch size of `1`, regardless of the `batch_size` setting in the training configuration.