chunk_content: /huggingface/documentation-images/resolve/main/semantic-seg-image.png"
  image = Image.open(requests.get(url, stream=True).raw)
  image
  
  Preprocess the image to prepare for inference.
  
  
  	Copied
  encoding = image_processor(image.convert("RGB"), return_tensors="pt")
  Run inference with the encoded image.
  
  
  	Copied
  with torch.no_grad():
      outputs = inference_model(pixel_values=encoding.pixel_values)
      logits = outputs.logits
  
  upsampled_logits = nn.f