Run a Model on an Image

You can run inference on an image using a trained Roboflow model from the CLI.

roboflow infer <image-path> -m <workspace>/<project>/<version>

Parameters

  • image-path -- Path to the image file.
  • -m / --model -- The model ID in the format workspace/project/version.

Example

roboflow infer ./image.jpg -m my-workspace/vehicle-detection/1