torchmfbd: a flexible multi-object multi-frame blind deconvolution code
arXiv:2505.10639 · doi:10.1051/0004-6361/202555530
Abstract
Post-facto image restoration techniques are essential for improving the quality of ground-based astronomical observations, which are affected by atmospheric turbulence. Multi-object multi-frame blind deconvolution (MOMFBD) methods are widely used in solar physics to achieve diffraction-limited imaging. We present torchmfbd, a new open-source code for MOMFBD that leverages the PyTorch library to provide a flexible, GPU-accelerated framework for image restoration. The code is designed to handle spatially variant point spread functions (PSFs) and includes advanced regularization techniques. The code implements the MOMFBD method using a maximum a-posteriori estimation framework. It supports both wavefront-based and data-driven PSF parameterizations, including a novel experimental approach using non-negative matrix factorization. Regularization techniques, such as smoothness and sparsity constraints, can be incorporated to stabilize the solution. The code also supports dividing large fields of view into patches and includes tools for apodization and destretching. The code architecture is designed to become a flexible platform over which new reconstruction and regularization methods can also be implemented straightforwardly. We demonstrate the capabilities of torchmfbd on real solar observations, showing its ability to produce high-quality reconstructions efficiently. The GPU acceleration significantly reduces computation time, making the code suitable for large datasets. The code is publicly available at https://github.com/aasensio/torchmfbd.
15 pages, 8 figures, submitted for publication to A&A
References in corpus (18)
- SciPy 1.0--Fundamental Algorithms for Scientific Computing in Python
- Array Programming with NumPy
- CRISP Spectropolarimetric Imaging of Penumbral Fine Structure
- Sunrise: instrument, mission, data and first results
- The Imaging Magnetograph eXperiment (IMaX) for the Sunrise balloon-borne solar observatory
- CRISPRED: A data pipeline for the CRISP imaging spectropolarimeter
- Multi-frame blind deconvolution with linear equality constraints
- SSTRED: Data- and metadata-processing pipeline for CHROMIS and CRISP
- Speckle Statistics in Adaptively Corrected Images
- Sparse inversion of Stokes profiles. I. Two-dimensional Milne-Eddington inversions
- High-order aberration compensation with Multi-frame Blind Deconvolution and Phase Diversity image restoration techniques
- GREGOR: Optics Redesign and Updates from 2018-2020
- Sunrise III: Overview of Observatory and Instruments
- Image restoration of solar spectra
- The discrepancy in G-band contrast: Where is the quiet Sun?
- Learning to do multiframe wavefront sensing unsupervisedly: applications to blind deconvolution
- Estimating the longitudinal magnetic field in the chromosphere of quiet-Sun magnetic concentrations
- Image Reconstruction with Analytical Point Spread Functions