MD.ai

Run Inference

Run a model on your data and review its outputs

Once a model version has built successfully, run it on any exam, series, image or whole dataset in the project. Models from the Model Registry are ready to run as soon as they're cloned.

Run a model

Navigate to the exam, series or image you want to run the model on, and open the Models panel from the Navigation column.

On the model card, select the version to run in the versions table.

Choose the scope: the active Image, Series, Exam or Dataset. Scopes smaller than the model's own scope aren't available.

To change the model's args for this run, click the args button and edit them in Edit Task Args.

Click Run Inference.

Run inference
RoleCan run on
ReaderNothing
WriterAn image, series or exam
QA, AdminAlso a whole dataset

You can also run a model on a dataset with the CLI: mdai model create-task.

Follow progress

The run appears in the model's tasks table, with its status and progress: Queued, Provisioning, Preparing, Running, then Succeeded, Failed or Outdated. While a model runs on the image you're viewing, the image shows a timer.

Model running on the active image

When a task succeeds, you get an email and an in-app notification. Running tasks can't be cancelled; to discard a task's results, delete the task.

Review outputs

Outputs appear on the images, and in the model outputs list below each image, next to the annotations. Hover over an output for details such as the model version, class probabilities, and explanations like Grad-CAM heatmaps the model returned.

Model outputs
  • Show or hide outputs with Model Outputs in Layers Control, or Ctrl/⌘+Shift+M.
  • To show only one version's or one task's outputs, click Add Filter on it.
  • For IMAGE and DICOM outputs, click Open Image in viewer.
  • On videos, switch the timeline to model outputs to see them over time.

Admins can hide outputs from everyone else, for example to keep readers from being influenced.

Work with results

Each task in the tasks table has these actions:

ActionDoes
Show Model Task Output SummaryA summary of the task's outputs
DetailsStatus, version, args, timings, success and error counts, error messages and logs, and View Performance for classification models
Add FilterShows only this task's outputs
Clone Model Outputs As AnnotationsCopies all the task's outputs into annotations
Export DICOM output to new datasetFor IMAGE and DICOM outputs: creates a dataset from the generated images
DeleteDeletes the task and its outputs. Available to the task's creator and admins.

The details also show what the task ran on. Click the dataset, exam, series or image to go to it.

Go to a task's data

Turn outputs into annotations

To use a model's outputs as a starting point for annotations, clone them. The clones are regular annotations you can edit or delete, and they record which output they came from.

  • One output: hover over it in the model outputs list and choose Clone as Annotation.
  • All outputs of a task: click Clone Model Outputs As Annotations on the task.

Writers, QA users and admins can clone outputs. Outputs can't be cloned into a label group with No Applying Labels set.

Upload and run inference

To try models on images that aren't in the project, click Upload Data & Inference in the Models panel. Select one or more models, and upload up to 500 MB of files. Each model's default version runs on them, and you can review the results right away.

The files go into a private Temporary Dataset, visible only to you and project admins. It's deleted automatically about an hour after its last task finishes.

Upload and run inference

On this page