from grid.model.perception.segmentation.lseg import LSegModelcar = AirGenCar()# We will be capturing an image from the AirGen simulator # and run model inference on it.img = car.getImage("front_center","rgb").datamodel = LSegModel(use_local =False)result = model.run(rgbimage=img, prompt=<prompt>)print(result.shape)
The LSegModel class provides core functionality for this module.
from grid.model.perception.segmentation.lseg import LSegModelcar = AirGenCar()# We will be capturing an image from the AirGen simulator # and run model inference on it.img = car.getImage("front_center","rgb").datamodel = LSegModel(use_local =False)result = model.run(rgbimage=img, prompt=<prompt>)print(result.shape)
from grid.model.perception.segmentation.lseg import LSegModelcar = AirGenCar()# We will be capturing an image from the AirGen simulator # and run model inference on it.img = car.getImage("front_center","rgb").datamodel = LSegModel(use_local =False)result = model.run(rgbimage=img, prompt=<prompt>)print(result.shape)