Multi-Task Inference: Super-Resolution + Segmentation

Screenshots

Screenshots on this page show the v0.2 interface and are pending update.

Napari-OmniEM lets you chain models in a single analysis workflow. This example shows how applying super-resolution before segmentation can improve mitochondria segmentation compared with segmenting the original data directly (Figure 5 in the manuscript).

The experiment uses a downsampled glycolytic-muscle EM dataset from CEM-MitoLab. The dataset is included with Napari-OmniEM as sample data. This page compares two workflows:

  1. Direct segmentation: segment mitochondria directly in the downsampled data.
  2. Super-resolution + segmentation: upsample the data first, then segment.

Data

Select File → Open Sample → OmniEM → EM to load the three bundled datasets. Use the GlyMuscle (3D) layer for this example.

Open the OmniEM panel and select the layer from the Data list. Set the z-dimension to 0, then open the Image Properties panel and verify that the data shape is [302, 168, 336].


Direct Mitochondria Segmentation

Select Mitochondria Segmentation from the Task list. We recommend the ViT-L-2D solution for its stronger generalization. Adjust the settings as needed. For example, set the output name to raw-seg to identify the result and reduce the batch size to 1 to lower memory use.

Click Run model and wait for the results.


Super-Resolution

Select Super-resolution from the Task list and set Scale (×) to 2.0. This doubles both in-plane axes (168 → 336 and 336 → 672); the z-axis is not scaled. The panel displays the resulting output shape.

Click Run model to start super-resolution inference. When the run finishes, remove any unused data layers and switch to Grid view to compare the results side by side.


Mitochondria Segmentation on Super-Resolved Data

Select the new super-resolution image from the Data list. Layers synchronize automatically; use 🔄 Synchronize Data only if the layer is missing. Select Mitochondria Segmentation as the task. To account for the higher input resolution, increase XY Input Size to a larger value, such as 448.

Click Run model and wait for the segmentation results.

Switch to 3D view to compare the results more clearly.


Conclusion

Napari-OmniEM can chain complementary models within one interactive workflow. Here, super-resolution provides a higher-resolution input for mitochondria segmentation and can improve the final result. The same approach can adapt model sequences to other EM datasets and analysis goals.