-
Notifications
You must be signed in to change notification settings - Fork 11
/
demo4.py
19 lines (15 loc) · 970 Bytes
/
demo4.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# ======================================================================================================================
# Demo 4 demonstrates how DeepSTORM3D can be used to learn an optimal PSF for high density. The parameters assumed for
# this demo match our telomere simulations (Fig. 4 main text).The script shows the phase mask and the corresponding PSF
# being updated over iterations. The mask was initialized in this demo to zero-modulation.
# ======================================================================================================================
# import the data generation and optics learning net functions
from Demos.parameter_setting_demo4 import demo4_parameters
from DeepSTORM3D.GenerateTrainingExamples import gen_data
from DeepSTORM3D.PSF_Learning import learn_mask
# specified training parameters
setup_params = demo4_parameters()
# generate training data
gen_data(setup_params)
# learn a localization cnn
learn_mask(setup_params)