In order to make the initial pass more stable across various file sizes, would be ideal to input a desired number of frames n_init_frames instead of n_init_files.
Hotfix:'plane_std' : init_mov.std(axis=(1,2,3), dtype=job.params['dtype']), and use job.params['dtype']=n.float32 to lower the memory demand (numpy defaults to float64).
In order to make the initial pass more stable across various file sizes, would be ideal to input a desired number of frames
n_init_frames
instead ofn_init_files
.If too many frames are used,
job.run_init_pass()
can run out of memory when computingplane_std
https://github.com/alihaydaroglu/suite2p/blob/8814021db46d6d63236697907d7596e99f86e817/suite2p/suite3d/init_pass.py#L142Hotfix:
'plane_std' : init_mov.std(axis=(1,2,3), dtype=job.params['dtype'])
, and usejob.params['dtype']=n.float32
to lower the memory demand (numpy defaults to float64).