from grid.model.perception.depth.depth_anything import DepthAnythingcar = AirGenCar()# We will be capturing an image from the AirGen simulator # and run model inference on it.img = car.getImage("front_center","rgb").datamodel = DepthAnything(use_local =True)result = model.run(rgbimage=img)print(result.shape)
The DepthAnything class implements a wrapper for the DepthAnything model, which estimates depth maps from RGB images. The model configurations are defined based on different encoder types.
from grid.model.perception.depth.depth_anything import DepthAnythingcar = AirGenCar()# We will be capturing an image from the AirGen simulator # and run model inference on it.img = car.getImage("front_center","rgb").datamodel = DepthAnything(use_local =True)result = model.run(rgbimage=img)print(result.shape)
This code is licensed under the Apache 2.0 License.
from grid.model.perception.depth.depth_anything import DepthAnythingcar = AirGenCar()# We will be capturing an image from the AirGen simulator # and run model inference on it.img = car.getImage("front_center","rgb").datamodel = DepthAnything(use_local =True)result = model.run(rgbimage=img)print(result.shape)