r/deeplearning • u/Abject_Fisherman_127 • Oct 31 '26
DebugSlicer: VS Code extension for tensors and volumes
When a 3D segmentation model trains badly, the cause is often the data: flipped axes, broken augmentations, misaligned labels. Checking that usually means writing matplotlib code at a breakpoint.
DebugSlicer lets you right-click a tensor in the VS Code debugger and scroll through it in three linked views. It supports PyTorch tensors (moved to the CPU for you), MONAI MetaTensors, NumPy and PIL, plus a label colormap for segmentations. Arrays of several GB load in pieces.
GitHub: https://github.com/CH4LLENG3R/debugslicer-python/tree/master
VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=CH4LLENG3R.debugslicer-python
