Skip to content

Change data module use of data domain#7

Merged
leopoldmt merged 9 commits intomainfrom
change_DataModule_use_of_DataDomain
Jul 13, 2025
Merged

Change data module use of data domain#7
leopoldmt merged 9 commits intomainfrom
change_DataModule_use_of_DataDomain

Conversation

@leopoldmt
Copy link
Contributor

Load DataDomain classes directly into DataModule than into each dataset:

PB: Each DataDomain is loading at least one .npy file.
With 3 modalities: v, attr, t we have 7 possible combinations.
For each combination a Dataset is created with one to three modalities, leading to one to three DataDomain.
In this situation at least 12 .npy are open and stored in memory.

Solution:
To decrease memory usage, load only the 3 DataDomain once in DataModule and pass them to the different datsets

Copy link

@RolandBERTINJOHANNET RolandBERTINJOHANNET left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great catch !!

@leopoldmt leopoldmt merged commit 3892af8 into main Jul 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants