ScenePredictor#

class ScenePredictor[source]#

Bases: object

Class for making predictions on a scen using a model-bundle.

__init__(model_bundle_uri: str, predict_options_uri: Optional[str] = None, tmp_dir: Optional[str] = None)[source]#

Creates a new Predictor.

Parameters
  • model_bundle_uri (str) – URI of the model bundle to use. Can be any type of URI that Raster Vision can read.

  • tmp_dir (Optional[str]) – Temporary directory in which to store files that are used by the Predictor.

  • predict_options_uri (Optional[str]) –

Methods

__init__(model_bundle_uri[, ...])

Creates a new Predictor.

predict(scene_config_uri)

Generate predictions for the given image.

__init__(model_bundle_uri: str, predict_options_uri: Optional[str] = None, tmp_dir: Optional[str] = None)[source]#

Creates a new Predictor.

Parameters
  • model_bundle_uri (str) – URI of the model bundle to use. Can be any type of URI that Raster Vision can read.

  • tmp_dir (Optional[str]) – Temporary directory in which to store files that are used by the Predictor.

  • predict_options_uri (Optional[str]) –

predict(scene_config_uri: str) None[source]#

Generate predictions for the given image.

Parameters

scene_config_uri (str) – URI to a serialized ScenConfig.

Return type

None