- Numpy arrays
- PIL/Pillow images
- PyTorch tensors
- Matplotlib plots or figures
mlop.Image class.
| Parameter | Type | Description |
|---|---|---|
data | Union[str, PILImage.Image, matplotlib.figure.Figure, torch.Tensor, np.ndarray] | The image data to log. Can be a path to an image file, a PIL image, a Matplotlib figure, a PyTorch tensor, or a NumPy array. |
caption | str | A caption for the image. |