OxyGenie.learn#
Module contents#
A PyTorch dataset class for loading and preprocessing simulation data. |
|
A U-Net-based neural network for image processing with additional embedding input. |
- class OxyGenie.learn.EUNet[source]#
A U-Net-based neural network for image processing with additional embedding input.
This model processes spatial inputs through a series of down-sampling and up-sampling layers, integrating additional parameter embeddings at the bottleneck.
- forward(x1, x2)[source]#
Define the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
- class OxyGenie.learn.SimuDataset(dataset_path, transform=None, random_flip=True)[source]#
A PyTorch dataset class for loading and preprocessing simulation data.
This dataset handles input features (X_1, X_2) and corresponding target outputs (Y), applying specified transformations and augmentations during loading.