class_docstr: Base class for segmentation networks.
  
  Args:
      opts: Command-line arguments
      encoder: Image classification network
code: def __init__(
      self, opts, encoder: BaseImageEncoder, *args, **kwargs
  ) -> None:
      super().__init__(opts, *args, **kwargs)
      self.lr_multiplier = getattr(
          opts, "model.segmentation.lr_multiplier"
      )
      assert isinstance(
          encoder, BaseImageEncoder
      ), "encoder should be an instance of BaseEncoder"
      self.encoder: BaseImageEncoder = encoder
      self.default_norm = getattr(opts, "model.normalization.name")
      self.opts = opts
  
file_path: ml-cvnets/cvnets/models/segmentation/base_seg.py
imports: import argparse
  from typing import Any, Dict
  import torch
  from cvnets.models import MODEL_REGISTRY, BaseAnyNNModel
  from cvnets.models.classification.base_image_encoder import BaseImageEncoder
label_desc: Use image node_id 1 to create a new BaseSegmentation object from inherited base classes: BaseAnyNNModel with example: obj = BaseSegmentation(opts, encoder)