Definition of the class used to simulate random emitter positions and intensities
%load_ext autoreload
%autoreload 2

class PointProcessUniform[source]

PointProcessUniform(local_rate:tensor, int_conc=0.0, int_rate=1.0, int_loc=1.0, sim_iters:int=5) :: Distribution

This class is part of the generative model and uses probability local_rate to generate locations `locations`  `x`, `y`, `z` offsets and `intensities` intensity of emitters. local_rate  should be `torch.tensor` scaled from 0.001 to 1), which is used by `_sample_bin` to generate `0` and `1` . `0` means that we don't have an emitter at a given pixel, and 1 means emitters is present. This map is used to generate offset in `x`, `y`, `z`, and intensities, which tells how bright is emitter or, in some cases, how many emitters are bound to given molecules.
Args:
    local_rate (BS, C, H, W, D): Local rate
    min_int (int): minimum intensity of emitters
    bg(bool): if returns sampled backround

list_to_locations[source]

list_to_locations(locations, output_shape)

point_process = PointProcessUniform(local_rate = torch.ones([1,1,48,48,48])*.01, int_mu=4, int_shape=10, int_loc=0, sim_iters=10)
locs_3d, x_os_3d, y_os_3d, z_os_3d, ints_3d, output_shape = point_process.sample()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-106-58458dbf7f5a> in <module>
----> 1 point_process = PointProcessUniform(local_rate = torch.ones([1,1,48,48,48])*.01, int_mu=4, int_shape=10, int_loc=0, sim_iters=10)
      2 locs_3d, x_os_3d, y_os_3d, z_os_3d, ints_3d, output_shape = point_process.sample()

TypeError: __init__() got an unexpected keyword argument 'int_mu'
cfg = OmegaConf.load(f'/groups/turaga/home/speisera/Mackebox/Artur/WorkDB/deepstorm/models/fishcod/Fig_sim_density/sweep_fe3/int_conc:2.5//train.yaml')
!nbdev_build_lib
Converted 00_models.ipynb.
Converted 01_psf.ipynb.
Converted 02_microscope.ipynb.
Converted 03_noise.ipynb.
Converted 04_pointsource.ipynb.
Converted 05_gmm_loss.ipynb.
Converted 06_plotting.ipynb.
Converted 07_file_io.ipynb.
Converted 08_dataset.ipynb.
Converted 09_output_trafo.ipynb.
Converted 10_evaluation.ipynb.
Converted 11_emitter_io.ipynb.
Converted 12_utils.ipynb.
Converted 13_train.ipynb.
Converted 15_fit_psf.ipynb.
Converted 16_visualization.ipynb.
Converted 17_eval_routines.ipynb.
Converted index.ipynb.