code: def __init__(self):
      import torch
  
      self.model = torch.hub.load("ultralytics/yolov5:v6.2", "yolov5s")
  
      if torch.cuda.is_available():
          self.model.cuda()
      else:
          self.model.cpu()
  
      # Config inference settings
      self.inference_size = 320
  
imports: import bentoml
  from bentoml.io import Image
  from bentoml.io import PandasDataFrame
label_desc: Use image node_id 1 to create a new Yolov5Runnable object from inherited base classes: bentoml with example: obj = Yolov5Runnable()