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=Trueoption 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=Trueoption 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 correspondingfilepaths, 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 providedpredictions.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
- Returns