MedSAMOptions

Options & Configuration · AiDotNet.ComputerVision.Segmentation.Medical

Configuration options for MedSAM universal medical segmentation.

Inheritance: ModelOptions → NeuralNetworkOptions → ModelHyperparameterOptions → SegmentationModelOptions → MedSAMOptions

For Beginners

These options configure the MedSAM model. Default values follow the original paper settings.

Constructors

Constructor Summary
MedSAMOptions() Initializes a new instance with default values.
MedSAMOptions(MedSAMOptions other) Initializes a new instance by copying from another instance.

Properties

Property Summary
MedSAMModelSize ModelSize { get; set; } Gets or sets which published size variant of the model to build.
int? DecoderDim { get; set; } Width of the mask decoder.
int[] ChannelDims { get; set; } Per-stage channel widths of the hierarchical image encoder.
int[] Depths { get; set; } Number of transformer blocks in each encoder stage.

Methods

Method Summary
void Validate() Throws when a value on this instance cannot produce a working model.