MCPcopy Create free account
hub / github.com/bwconrad/decoder-denoising / __init__

Method __init__

src/model.py:10–79  ·  view source on GitHub ↗

Decoder Denoising Pretraining Model Args: lr: Learning rate optimizer: Name of optimizer (adam | adamw | sgd) betas: Adam beta parameters weight_decay: Optimizer weight decay momentum: SGD momentum parameter arch: Segme

(
        self,
        lr: float = 1e-4,
        optimizer: str = "adam",
        betas: tuple[float, float] = (0.9, 0.999),
        weight_decay: float = 0.0,
        momentum: float = 0.9,
        arch: str = "unet",
        encoder: str = "resnet18",
        in_channels: int = 3,
        mode: str = "decoder",
        noise_type: str = "scaled",
        noise_std: float = 0.22,
        loss_type: str = "l2",
        channel_last: bool = False,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

get_loss_fnMethod · 0.95

Tested by

no test coverage detected