unet_native_from_torchscript

Create native UNet from TorchScript

Description

Detects architecture and loads weights from a TorchScript UNet file.

Usage

unet_native_from_torchscript(torchscript_path, verbose = TRUE)

Arguments

  • torchscript_path: Path to TorchScript UNet .pt file
  • verbose: Print loading progress

Value

A native UNet module with loaded weights