# Sample Visualization

## Intro and shared properties of the visualizers

In this page we present examples for the different visualizers, and how they are viewed in the platform. To better understand how to add these visualization via your [code integration](https://docs.tensorleap.ai/tensorleap-integration/writing-integration-code), refer to the [visualizer functions](https://docs.tensorleap.ai/tensorleap-integration/writing-integration-code/visualizer-function).

### The top bar of visualizers: Identifying a sample and its properties

<figure><img src="https://3509361326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9UXeOlFqlw8pl79U2HGU%2Fuploads%2FM1zu8X9CI4RwNM1mfpcy%2Fimage.png?alt=media&#x26;token=3ef16f81-030e-49c8-9c63-36123ba384f5" alt=""><figcaption><p>The image visualizer for the MNIST dataset. Hovering over a specific sample allows to zoom into the image (see top left magnifying glasses over sample). The top of each sample shows its sample ID and abbreviation of its respective data subset (train, val, test).</p></figcaption></figure>

All visualizers in the sample review window share a common top bar that shows the following:

* &#x20;Sample ID, together with an abbreviation of the subset it belongs to (train, validation, test)
* On Hover - a magnifying glass action that allows to zoom in and out
* The selected [Metadata tags](https://docs.tensorleap.ai/user-interface/project/dashboards/dashlets/population-exploration/..#metadata-tags) that were added

## The different visualization types in the Dashboard

### Heatmaps Visualizer

<figure><img src="https://3509361326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9UXeOlFqlw8pl79U2HGU%2Fuploads%2FCpOkIdJKB2mISBuKOX3d%2FKapture%202025-07-05%20at%2015.41.36.gif?alt=media&#x26;token=5eebaf36-9d17-4520-9e50-3b6b48e22c27" alt=""><figcaption><p>Each visualized input get a second, attention overlayed visualizer. This overlays the shared features of a concept that is clustered within the platform over the image. It answers the question: "What makes these samples part of the same group?"</p></figcaption></figure>

Each Input that we connect to a visualizer [using the mapping](https://docs.tensorleap.ai/user-interface/project/network/network-mapping/create-a-mapping-deprecated) would automatically be accompanied by a corresponding second visualizer in the sample review panel. This visualizer is a *heatmap visualization* that overlays the shared features of a concept that is clustered within the platform over the image. It answers the question: "What makes these samples part of the same group?".

Controlling the color saturation and opacity of the heatmaps is possible via the top controller of the heatmap visualizer.

Each input visualizer named "x" would result in a second

### Metadata Visualizer

<figure><img src="https://3509361326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9UXeOlFqlw8pl79U2HGU%2Fuploads%2FcmmABaADGuXKxMx3WpO4%2Fimage.png?alt=media&#x26;token=bf74c762-2049-4c05-9e3f-b00d5a99d9a7" alt=""><figcaption><p>The metadata visualizer. In the top controller the option to keep only selected columns, reset selection, or export the data into .csv are presented by the Columns, Reset, and Export button respectively.</p></figcaption></figure>

The metadata visualizer is a defaultive visualizer that shows [the metadata](https://docs.tensorleap.ai/tensorleap-integration/writing-integration-code/metadata-function) for all selected samples. The top controller of this visualizer allows to control and export the current table:

* The Columns button - Allows column selection and filtering for the table, narrowing the metadata to a relevant subset of the properties.
* The Reset button - Allows to reset previous column filtering to show all.
* The Export button - Exports the current table into a .csv

### Image Visualizer

<figure><img src="https://3509361326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9UXeOlFqlw8pl79U2HGU%2Fuploads%2FM1zu8X9CI4RwNM1mfpcy%2Fimage.png?alt=media&#x26;token=3ef16f81-030e-49c8-9c63-36123ba384f5" alt=""><figcaption><p>The image visualizer for the MNIST dataset. Hovering over a specific sample allows to zoom into the image (see top left magnifying glasses over sample)</p></figcaption></figure>

The [image visualizer](https://docs.tensorleap.ai/tensorleap-integration/python-api/code_loader/visualizer_classes) supports a visualization of images within the platform. Hovering over an image shows the RGB values. It also presents an option to zoom in or out, by clicking the magnifying glass over the image.

### Semantic Segmentation Visualizer

<figure><img src="https://3509361326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9UXeOlFqlw8pl79U2HGU%2Fuploads%2FbZF7B2FbTmGaRtVapm7V%2FKapture%202025-07-07%20at%2000.45.09.gif?alt=media&#x26;token=69cdb83d-5801-4374-83f4-e26be6da09fc" alt=""><figcaption><p>Semantic Segmentation visualizer. Allows a dynamic selection of which labels to plot in the mask, and a control over the opacity</p></figcaption></figure>

This visualizer visualizes the semantic segmentation of an image. Different properties of these settings could be controlled:

* Choosing which label would be shown in the mask
* Controlling what is the mask opacity

### Object Detection Visualizer

<figure><img src="https://3509361326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9UXeOlFqlw8pl79U2HGU%2Fuploads%2FKck60UCE3BbzoQYifHUU%2FKapture%202025-07-05%20at%2015.10.00.gif?alt=media&#x26;token=bf929927-4afd-4028-8ee2-afde4c9862b0" alt=""><figcaption><p>Presenting the Object Detection visualizer. This visualizer allows you to visualize bounding boxes  (BBs) over an image. It allows a dynamic selection of what BBs are shown by confidence or label. It also allow to view any metadata that is attached to the bounding box.</p></figcaption></figure>

This visualizer visualizes an image with bounding boxes. Different properties of these settings could be controlled:

* Choosing which bounding box labels would be presented
* Showcasing all [bounding box metadata](https://docs.tensorleap.ai/tensorleap-integration/python-api/code_loader/visualizer_classes/leapimagewithbbox) or hiding it
* Controlling what are the minimal and maximal confidence of the bounding boxes that are presented.

### Horizontal Bar Visualizer

<figure><img src="https://3509361326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9UXeOlFqlw8pl79U2HGU%2Fuploads%2FRY6oXo5qIrG6q4zDzpBk%2Fimage.png?alt=media&#x26;token=2857b1be-9938-45a4-9b6d-49b28d48ae48" alt=""><figcaption><p>The horizontal bar visualizer. Used to visualize logits and probabilities</p></figcaption></figure>

The horizontal bar is used to visualize logits and probabilities.

### Graph Visualizer

<figure><img src="https://3509361326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9UXeOlFqlw8pl79U2HGU%2Fuploads%2FituaEWKWOIWtHCTaed63%2Fimage.png?alt=media&#x26;token=11d9355d-6bdb-4e1d-bb12-ed4d620a660c" alt=""><figcaption><p>The Graph visualizer. jsed to visualize time-series</p></figcaption></figure>

The Graph visualizer is used to visualize time series.

### Text Visualizer

<figure><img src="https://3509361326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9UXeOlFqlw8pl79U2HGU%2Fuploads%2Fdi7AhR7vjKwTDvx0Og63%2Fimage.png?alt=media&#x26;token=96a3bc31-904c-4c8a-b081-9cd0983aceb1" alt=""><figcaption><p>The Text visualizer</p></figcaption></figure>

The Text visualizer  is used to visualize raw text.

### Text Mask Visualizer

<figure><img src="https://3509361326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9UXeOlFqlw8pl79U2HGU%2Fuploads%2F2ej3e52ZZUcfWXo1pKoP%2FKapture%202025-07-05%20at%2017.43.28.gif?alt=media&#x26;token=7abbeddc-0544-408b-97dd-c75f2a9d6663" alt=""><figcaption><p>The text mask visualizer. Used to visualize token classification tasks (NER, etc.)</p></figcaption></figure>

The Text mask visualizer is used to visualize a TextMask, for token classification tasks such as NER.
