hyrax.models.hyrax_autoencoderv2
Attributes
Classes
Helper module for HyraxAutoencoderV2 to use the arcsinh function |
|
This is tweaked version of HyraxAutoencoder and is designed to work with a wide range of imaging datasets. |
Module Contents
- class ArcsinhActivation(*args, **kwargs)[source]
Bases:
torch.nn.ModuleHelper module for HyraxAutoencoderV2 to use the arcsinh function
Initialize internal Module state, shared by both nn.Module and ScriptModule.
- class HyraxAutoencoderV2(config, data_sample=None)[source]
Bases:
torch.nn.ModuleThis is tweaked version of HyraxAutoencoder and is designed to work with a wide range of imaging datasets.
V2 improvements: - Configurable final layer activation - Uses criterion and optimizer from config variables
Initialize internal Module state, shared by both nn.Module and ScriptModule.
- train_step(batch)[source]
This function contains the logic for a single training step. i.e. the contents of the inner loop of a ML training process.
- Parameters:
batch (tuple) – A tuple containing the inputs and labels for the current batch.
- Returns:
Current loss value – Dictionary containing the loss value for the current batch.
- Return type:
dict