Deploy generative image priors for image reconstruction using BART
MR image reconstruction, model deployment, TensorFlow C API, TensorFlow computation graph
Abstract
As the image priors are almost always trained in an offline setting using Python, this work aims to deploy the trained model with an MR image reconstruction toolbox, BART, which is a versatile tool for image reconstruction. As shown in Figure 1, there are two steps to realize this: (a) export the constructed computation graph with TensorFlow; (b) use the graph as regularization in BART.
The deployment of models trained with spreco into BART requires minimum environmental prerequisites, providing a practical and user-friendly solution for medical image reconstruction tasks.
Method
We developed a Python library for training generative models, spreco, based on TensorFlow, which has the following features:
- Distributed training
- Interruptible training
- Efficient dataloader for medical images
- Customizable with a configuration file
And we trained a log-likelihood prior, \(\log p({x};\mathtt{NET}(\hat{\Theta}, {x}))\)\(^1\)\(^{,\ 2}\), which is used to impose learned prior knowledge of images in the SENSE model. The reconstruction is commonly formulated as the following minimization problem \begin{equation} \hat{x}=\underset{x}{\arg\min}\ |\mathcal{A}{x}-{y}|_2^2 + \lambda \log p({x};\mathtt{NET}(\hat{\Theta}, {x})),\nonumber \label{eq:1} \end{equation} where the first term ensures data consistency between the acquired k-space data \({y}\) and the desired image \({x}\), \(\mathcal{A}\) is the forward operator. This problem is solved with FISTA algorithm that has been implemented in BART. To use the learned log-likelihood prior with BART, we have implemented a wrapper using TensorFlow C API for the initialization, restoration and inference of the exported trained model. Click here and give a quick tryout!
Figure 3 displays the evolution of image during the process of reconstruction.
Conclusion
We showcased the seamless integration of a TensorFlow trained model into the existing MRI reconstruction workflows of the BART toolbox. This integration allows us to leverage the image reconstruction capabilities offered by BART while harnessing the advantages of rapid prototyping of advanced deep learning models using TensorFlow.