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.

This code is licensed under the Apache 2.0 License.

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.

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)

Was this page helpful?