Practical overview
When it fits
Consider DeepCAD-RT when fluorescence time-lapse data needs noise reduction and the workflow can be matched to the available data, GPU and software environment. The MATLAB route is relevant when real-time inference during ScanImage acquisition is the goal.
Who it is for
- Microscopy researchers working with fluorescence time-lapse recordings.
- Teams exploring denoising for calcium imaging or neuronal population imaging.
- Users who can work with the documented Python environment or the specified MATLAB and ScanImage setup.
Documented uses
- Train a denoising model using the provided Python demo and sample data.
- Test denoising with a pre-trained model and demo dataset.
- Explore the workflow in Jupyter or browser-based Colab notebooks.
- Configure GPU-accelerated MATLAB inference for real-time ScanImage acquisition.
Requirements & limits
- The Python demo requires a CUDA-matched PyTorch installation; the tutorial's example environment uses Ubuntu 16.04, Python 3.9, PyTorch 1.8.0 and CUDA 11.1.
- The Colab notebook avoids local environment configuration but may run training and testing more slowly because of limited cloud GPU performance.
- The real-time MATLAB workflow has separate Windows, CUDA, cuDNN, MATLAB and Visual Studio requirements.
- The MATLAB workflow uses ONNX models, and patch size, overlap and batch settings affect the documented balance between denoising performance and inference speed.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up the Python demo environment
Prepare the documented Python environment and launch a DeepCAD-RT training or testing demo.
Before you start
- Python 3.9 and Conda
- PyTorch installed with a build matched to the available CUDA version
- The DeepCAD-RT source repository
Steps
Create and activate a Conda environment named deepcadrt with Python 3.9.
Install numpy below version 2.0 and install a PyTorch build appropriate for the CUDA version.
Clone the DeepCAD-RT repository and change to its DeepCAD_RT_pytorch directory.
Run demo_train_pipeline.py to train using the automatically downloaded demo dataset, or run demo_test_pipeline.py to test with automatically downloaded demo data and a pre-trained model.
Expected outcome
A local Python demo workflow for training or testing DeepCAD-RT on the example data.
Guide limitations
- The tutorial's example environment uses Ubuntu 16.04, PyTorch 1.8.0 and an NVIDIA RTX 3090 with CUDA 11.1; the PyTorch installation must match the user's CUDA version.
- The tutorial says users can select other data and models by changing the datasets_path and denoise_model parameters.
Prepare the MATLAB real-time inference workflow
Configure the documented MATLAB and ScanImage setup for inference with an ONNX model.
Before you start
- Windows 10, CUDA 11.0, cuDNN 8.0.5, MATLAB 2018a or newer, and Visual Studio 2017
- The DeepCAD-RT MATLAB implementation and an ONNX model
- ScanImage for the documented acquisition workflow
Steps
Install the provided executable and copy the DLL files from its installation folder into the CUDA installation directory.
In MATLAB, change to the DeepCAD-RT-v2 folder and run mex -setup C++ followed by installDeepCADRT.
Open ScanImage and the DeepCAD_RT GUI, then select the ONNX model and an output path.
Set the frame count and processing parameters, click Configure, and then use GRAB in ScanImage to begin imaging.
Expected outcome
A configured MATLAB GUI workflow for real-time denoising during ScanImage acquisition.
Guide limitations
- The tutorial describes a specific Windows, CUDA, cuDNN, MATLAB and Visual Studio environment.
- The ONNX model's patch size determines the corresponding GUI patch-size settings; the tutorial notes that greater overlap can improve performance while reducing inference speed.
- The tutorial says to configure the workflow before each imaging session.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 28 November 2026

