mirror of
https://github.com/c-sooyoung/bo-ptycho.git
synced 2026-09-17 20:29:07 +09:00
new config schema
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
# TODO:
|
# TODO:
|
||||||
|
|
||||||
- fold_slice: load diffractions / hdf5 files; change only param per job
|
- fold_slice:
|
||||||
|
- load diffractions / hdf5 files; change only param per job
|
||||||
- restructure `FoldSlicePtychoEngine.__init__()` to load data but not params
|
- restructure `FoldSlicePtychoEngine.__init__()` to load data but not params
|
||||||
- write new `prepare_data.m`
|
- write new `prepare_data.m`
|
||||||
|
- start fold_slice from config.yaml instead of setup.txt
|
||||||
- unify `BOEngine.__init__()`
|
- unify `BOEngine.__init__()`
|
||||||
- BO train_x/y transfer between engines for single job
|
- BO train_x/y transfer between engines for single job
|
||||||
- multi-GPU dispatcher
|
- multi-GPU dispatcher
|
||||||
@@ -15,10 +17,14 @@
|
|||||||
- separate `config` into `bo_config` and `ptycho_config`; let `BOEngine` have no knowledge of ptychography and vice versa.
|
- separate `config` into `bo_config` and `ptycho_config`; let `BOEngine` have no knowledge of ptychography and vice versa.
|
||||||
- add GPU version of ExamplePtychoEngine
|
- add GPU version of ExamplePtychoEngine
|
||||||
- change `PtychoEngine.metric()` to accept list of names and return dict
|
- change `PtychoEngine.metric()` to accept list of names and return dict
|
||||||
- custom sequence for BO
|
- separation of available GPUs and parallel BO batches
|
||||||
- design yaml first
|
- prepare next batch for efficient GPU use
|
||||||
|
- rename `BOEngine` to `Sampler`
|
||||||
|
- organize results/
|
||||||
|
- possibly: `[dataset name]/[salient config]-[date]/`
|
||||||
|
|
||||||
|
|
||||||
# TODAY:
|
# TODAY:
|
||||||
- `UniformBOEngine`
|
- `GridSampler`
|
||||||
|
- `.__init__()` should create a grid
|
||||||
|
- `.ask()` should remove those items from the grid
|
||||||
|
|||||||
+27
-22
@@ -1,27 +1,19 @@
|
|||||||
job:
|
|
||||||
type: "random+sobo"
|
|
||||||
random_iters: 8
|
|
||||||
sobo_iters: 128
|
|
||||||
|
|
||||||
io:
|
io:
|
||||||
input_data_path: '/home/swim/shared/Si_project/data/Si2V1_2.mat'
|
input_data_path: '/home/swim/shared/Si_project/data/Si2V1_2.mat'
|
||||||
result_dir: '/home/swim/bo-ptycho/results/260812-Si/Si2V1_2'
|
result_dir: '/home/swim/bo-ptycho/results/Si2V1_2/260814-2'
|
||||||
verbosity: 1
|
verbosity: 1
|
||||||
|
|
||||||
ptycho:
|
ptycho:
|
||||||
engine: 'fold_slice'
|
engine: 'fold_slice'
|
||||||
path: '/home/swim/fold_slice-stable'
|
path: '/home/swim/fold_slice-park'
|
||||||
params:
|
params:
|
||||||
voltage: 200
|
voltage: 200
|
||||||
alpha_max: 30
|
alpha_max: 30
|
||||||
defocus: -200
|
defocus: -250
|
||||||
rot_ang: 0.3
|
rot_ang: 0.3
|
||||||
Nlayers: 20
|
Nlayers: 20
|
||||||
thickness: 250
|
thickness: 250
|
||||||
rbf: 37
|
rbf: 37
|
||||||
Nprobe: 1
|
|
||||||
N_scan_x: 64
|
|
||||||
N_scan_y: 64
|
|
||||||
tilt_x: 2
|
tilt_x: 2
|
||||||
tilt_y: 0
|
tilt_y: 0
|
||||||
scan_step_size: 0.36
|
scan_step_size: 0.36
|
||||||
@@ -31,32 +23,45 @@ ptycho:
|
|||||||
|
|
||||||
CBED_size: 192
|
CBED_size: 192
|
||||||
ADU: 1
|
ADU: 1
|
||||||
extra_print_info: ''
|
Nprobe: 1
|
||||||
|
N_scan_x: 64
|
||||||
|
N_scan_y: 64
|
||||||
|
extra_print_info: 'FIB'
|
||||||
scan_number: 1
|
scan_number: 1
|
||||||
gpu_id: 1
|
gpu_id: 1
|
||||||
roi_label: '0_Ndp64'
|
roi_label: '0_Ndp64'
|
||||||
diff_pattern_blur: 1
|
diff_pattern_blur: 1
|
||||||
probe_change_start: 1
|
probe_change_start: 1
|
||||||
object_change_start: 1
|
object_change_start: 1
|
||||||
grouping: 512
|
grouping: 64
|
||||||
probe_position_search: 1
|
probe_position_search: 1
|
||||||
regularize_layers: 0.2
|
regularize_layers: 0.2
|
||||||
variable_probe: 'false'
|
variable_probe: false
|
||||||
|
|
||||||
bo:
|
search:
|
||||||
batch: 4
|
metric: log_fourier
|
||||||
acquisition: 'ucb'
|
|
||||||
beta: 0.1 # for ucb only
|
|
||||||
metric: 'log_fourier'
|
|
||||||
params:
|
params:
|
||||||
alpha_max:
|
|
||||||
defocus:
|
defocus:
|
||||||
radius: 100
|
radius: 100
|
||||||
rot_ang:
|
|
||||||
Nlayers:
|
Nlayers:
|
||||||
radius: 5
|
radius: 5
|
||||||
type: int
|
type: int
|
||||||
thickness:
|
thickness:
|
||||||
radius: 100
|
radius: 150
|
||||||
train_x:
|
train_x:
|
||||||
train_y:
|
train_y:
|
||||||
|
|
||||||
|
sequence:
|
||||||
|
# - sampler: fixed
|
||||||
|
|
||||||
|
# - sampler: grid
|
||||||
|
# points:
|
||||||
|
|
||||||
|
- sampler: random
|
||||||
|
samples: 32
|
||||||
|
|
||||||
|
- sampler: sobo
|
||||||
|
iterations: 512
|
||||||
|
batch: 4
|
||||||
|
acquisition: 'ucb'
|
||||||
|
beta: 0.1
|
||||||
|
|||||||
Reference in New Issue
Block a user