ScenePredictor#

class ScenePredictor[source]#

Bases: object

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

__init__(model_bundle_uri: str, predict_options: str | dict | rastervision.core.rv_pipeline.rv_pipeline_config.PredictOptions | None = None, tmp_dir: str | None = None)[source]#

Creates a new Predictor.

Parameters:

Methods

__init__(model_bundle_uri[, ...])

Creates a new Predictor.

build_scene(scene_config)

predict(scene_config)

Generate predictions for the given image.

predict_scene(scene)

Generate predictions for the given scene.

__init__(model_bundle_uri: str, predict_options: str | dict | rastervision.core.rv_pipeline.rv_pipeline_config.PredictOptions | None = None, tmp_dir: str | None = None)[source]#

Creates a new Predictor.

Parameters:
build_scene(scene_config: str | dict | SceneConfig) Scene[source]#
Parameters:

scene_config (str | dict | SceneConfig) –

Return type:

Scene

predict(scene_config: str | dict | rastervision.core.data.scene_config.SceneConfig) None[source]#

Generate predictions for the given image.

Parameters:
Return type:

None

predict_scene(scene: Scene) None[source]#

Generate predictions for the given scene.

Parameters:

scene (Scene) – Scene to predict on.

Return type:

None