openspyrit / spyrit

A Python toolbox for deep image reconstruction, with emphasis on single-pixel imaging.
https://spyrit.readthedocs.io/en/
GNU Lesser General Public License v3.0
44 stars 15 forks source link

reconstruct_expe for DCNet #191

Closed jabascal closed 1 month ago

jabascal commented 7 months ago

Exception has occurred: AttributeError 'SplitPoisson' object has no attribute 'gain' File "/home/abascal/Projects/openspyrit/spyrit/spyrit/core/prep.py", line 381, in sigma_expe self.gain (x - 2 self.nbin * self.mudark) ^^^^^^^^^ File "/home/abascal/Projects/openspyrit/spyrit/spyrit/core/recon.py", line 778, in reconstruct_expe var_noi = self.prep.sigma_expe(x) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/abascal/Projects/openspyrit/spyrit-examples/tutorial/fig_recon_sim_prelim.py", line 473, in rec_gpu = model.reconstruct_expe(m) ^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'SplitPoisson' object has no attribute 'gain'

jabascal commented 6 months ago

To try also https://github.com/openspyrit/spyrit-examples/blob/master/2022_OE_spyrit2/fig8_recon.py