from grid.model.perception.vlm.moondream import MoonDreamcar = AirGenCar()# We will be capturing an image from the AirGen simulator # and run model inference on it.img = car.getImage("front_center","rgb").datamodel = MoonDream(use_local =False)result = model.run(rgbimage=img, prompt=<prompt>)print(result)
The MoonDream class provides a wrapper for the MoonDream v3 model, which answers questions
about visual media (images).
from grid.model.perception.vlm.moondream import MoonDreamcar = AirGenCar()# We will be capturing an image from the AirGen simulator # and run model inference on it.img = car.getImage("front_center","rgb").datamodel = MoonDream(use_local =False)result = model.run(rgbimage=img, prompt=<prompt>)print(result)
This code is licensed under the Apache 2.0 License.
from grid.model.perception.vlm.moondream import MoonDreamcar = AirGenCar()# We will be capturing an image from the AirGen simulator # and run model inference on it.img = car.getImage("front_center","rgb").datamodel = MoonDream(use_local =False)result = model.run(rgbimage=img, prompt=<prompt>)print(result)