-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
44 additions
and
12 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
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,17 @@ | ||
# Compression | ||
Yucca normally stores training data uncompressed and everything else compressed. Both raw data and predictions are stored in .nii.gz, .npz, .jpg, .png or similar file formats files while the preprocessed data is kept as .npy files (rather than the compressed .npz counterpart). During model training the preprocessed data will be read many, many times and using compressed data for this will significantly slow down training steps. | ||
|
||
If it is not possible to store the training data uncompressed due to storage limitations it is possible to train on compressed data. | ||
|
||
To achieve this use a Planner with compression enabled, such as the YuccaPlanner_Compress, or create one yourself with the desired Planner parameters. | ||
``` | ||
from yucca.pipeline.planning.YuccaPlanner import YuccaPlanner | ||
class YuccaPlanner_Compress(YuccaPlanner): | ||
def __init__(self, *args, **kwargs): | ||
super().__init__(*args, **kwargs) | ||
self.name = str(self.__class__.__name__) | ||
self.compress = True | ||
``` | ||
|
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 @@ | ||
UNDER CONSTRUCTION |