class_docstr: FiftyOne wrapper around a ``transformers.models`` model for semantic
  segmentation.
  
  Args:
      config: a `FiftyOneTransformerConfig`
class_docstr_tok: ["FiftyOne","wrapper","around","a","``","transformers.models","``","model","for","semantic","segmentation",".","Args",":","config",":","a","`","FiftyOneTransformerConfig","`"]
code: def _load_model(self, config):
      if config.model is not None:
          model = config.model
      else:
          model = transformers.AutoModelForSemanticSegmentation.from_pretrained(
              config.name_or_path
          )
  
      self.mask_targets = model.config.id2label
      return model
  
imports: import numpy
  from fiftyone.core.config import Config
  import fiftyone.core.labels
  from fiftyone.core.models import Model, EmbeddingsMixin
  import fiftyone.core.utils
label_desc: Use image node_id 1 for calling the FiftyOneTransformerForSemanticSegmentation obj's underlying member method code with example usage: obj._load_model(config) and returns: model