CookbooksCursus Cookbooks
Log Images During Training
Log images alongside scalar metrics to visually inspect model predictions during training.
- Log images from file paths, raw bytes, PIL Images, or numpy arrays
- Images appear on the run's Charts tab with a step scrubber
- Re-logging the same
(key, step)overwrites the previous image
Time to complete: ~5 minutes
Prerequisites
pip install sagea-cursusCURSUS_API_KEYandCURSUS_BASE_URLset in your environment- (Optional)
pip install Pillowfor PIL/numpy image support
Step 1: Log images from file paths
Step 2: Log from bytes or numpy
You can also pass raw bytes, PIL Images, or numpy arrays:
Step 3: View on the dashboard
Open the run's Charts tab. Each image key gets its own chart with a step scrubber — slide through steps to see predictions evolve over training.
Limits: 5 MB per image, 500 images per run. Re-logging the same (key, step) overwrites the previous bytes.
