chunk_content: eftConfig.from_pretrained(model_id)
  model = AutoModelForSemanticSegmentation.from_pretrained(
      checkpoint, id2label=id2label, label2id=label2id, ignore_mismatched_sizes=True
  )
  
  inference_model = PeftModel.from_pretrained(model, model_id)
  Get an image:
  
  
  	Copied
  import requests
  
  url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/semantic-seg-image.png"
  image = Image.open(requests.get(url, stream=True).raw)
  im