Shortcuts

flash.core.integrations.fiftyone.utils.visualize

flash.core.integrations.fiftyone.utils.visualize(predictions, filepaths=None, label_field='predictions', wait=False, **kwargs)[source]

Visualizes predictions from a model with a FiftyOne Output in the FiftyOne App.

This method can be used in all of the following environments:

  • Local Python shell: The App will launch in a new tab in your default web browser.

  • Remote Python shell: Pass the remote=True option to this method and then follow the instructions printed to your remote shell to open the App in your browser on your local machine.

  • Jupyter notebook: The App will launch in the output of your current cell.

  • Google Colab: The App will launch in the output of your current cell.

  • Python script: Pass the wait=True option to block execution of your script until the App is closed.

See this page for more information about using the FiftyOne App in different environments.

Parameters
  • predictions (Union[List[object], List[Dict[str, object]]]) – Can be either a list of FiftyOne labels that will be matched with the corresponding filepaths, or a list of dictionaries with “filepath” and “predictions” keys that contains the filepaths and predictions.

  • filepaths (Optional[List[str]]) – A list of filepaths to images or videos corresponding to the provided predictions.

  • label_field (Optional[str]) – The name of the label field in which to store the predictions in the FiftyOne dataset.

  • wait (Optional[bool]) – Whether to block execution until the FiftyOne App is closed.

  • **kwargs – Optional keyword arguments for fiftyone:fiftyone.core.session.launch_app().

Return type

Optional[object]

Returns

a fiftyone.core.session.Session

Read the Docs v: latest
Versions
latest
stable
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.0
0.5.2
0.5.1
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0post1
Downloads
html
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.