from grid.model.navigation.objectinspection import ObjectInspect
car = AirGenCar()

# We will be capturing an image from the AirGen simulator 
# and run model inference on it.

img =  car.getImage("front_center", "rgb").data

model = ObjectInspect(use_local = True)
result = model.run(rgbimage=img)
print(result.shape)
The ObjectInspect class provides core functionality for this module.
class ObjectInspect()
use_local
boolean
default:true
If True, inference call is run on the local VM, else offloaded onto GRID-Cortex. Defaults to True.
This model is currently not available via Cortex.
def run()
rgbimage
np.ndarray
required
None
Returns
np.ndarray
The predicted output.
from grid.model.navigation.objectinspection import ObjectInspect
car = AirGenCar()

# We will be capturing an image from the AirGen simulator 
# and run model inference on it.

img =  car.getImage("front_center", "rgb").data

model = ObjectInspect(use_local = True)
result = model.run(rgbimage=img)
print(result.shape)
This code is licensed under the Apache 2.0 License.