N2N Algorithm Config
N2N Algorithm configuration.
N2NAlgorithm
Bases: UNetBasedAlgorithm
Noise2Noise Algorithm configuration.
algorithm = 'n2n'
class-attribute
instance-attribute
N2N Algorithm name.
loss = 'mae'
class-attribute
instance-attribute
N2N-compatible loss function.
lr_scheduler = LrSchedulerConfig()
class-attribute
instance-attribute
Learning rate scheduler to use, defined in SupportedLrScheduler.
model
instance-attribute
UNet without a final activation function, without the n2v2 modifications, and
without independent channels for mismatching input/output channel numbers.
optimizer = OptimizerConfig()
class-attribute
instance-attribute
Optimizer to use, defined in SupportedOptimizer.
__str__()
get_algorithm_citations()
Return a list of citation entries of the current algorithm.
This is used to generate the model description for the BioImage Model Zoo.
Returns:
-
List[CiteEntry]–List of citation entries.
get_algorithm_description()
get_algorithm_friendly_name()
get_algorithm_references()
Get the algorithm references.
This is used to generate the README of the BioImage Model Zoo export.
Returns:
-
str–Algorithm references.
get_num_input_channels()
is_supervised()
classmethod
uses_batch_norm()
Return whether the model uses batch normalization.
Returns:
-
bool–Whether the model uses batch normalization.