Upload 3 files
Browse files
configs/b_mc_point_neutron_conv_standard_L1_comp.yaml
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
general:
|
| 2 |
+
name: b_mc_point_neutron_conv_standard_L1_comp
|
| 3 |
+
root_dir: null
|
| 4 |
+
|
| 5 |
+
dset:
|
| 6 |
+
cls: ReflectivityDataLoader
|
| 7 |
+
prior_sampler:
|
| 8 |
+
cls: SubpriorParametricSampler
|
| 9 |
+
kwargs:
|
| 10 |
+
param_ranges:
|
| 11 |
+
thicknesses: [1., 1000.]
|
| 12 |
+
roughnesses: [0., 60.]
|
| 13 |
+
slds: [-8., 16.]
|
| 14 |
+
bound_width_ranges:
|
| 15 |
+
thicknesses: [1.0e-2, 1000.]
|
| 16 |
+
roughnesses: [1.0e-2, 60.]
|
| 17 |
+
slds: [1.0e-2, 5.]
|
| 18 |
+
model_name: standard_model
|
| 19 |
+
max_num_layers: 1
|
| 20 |
+
constrained_roughness: true
|
| 21 |
+
max_thickness_share: 0.5
|
| 22 |
+
logdist: false
|
| 23 |
+
scale_params_by_ranges: false
|
| 24 |
+
scaled_range: [-1., 1.]
|
| 25 |
+
device: 'cuda'
|
| 26 |
+
|
| 27 |
+
q_generator:
|
| 28 |
+
cls: ConstantQ
|
| 29 |
+
kwargs:
|
| 30 |
+
q: [0.005, 0.2, 128]
|
| 31 |
+
device: 'cuda'
|
| 32 |
+
|
| 33 |
+
intensity_noise:
|
| 34 |
+
cls: BasicExpIntensityNoise
|
| 35 |
+
kwargs:
|
| 36 |
+
relative_errors: [0.0, 0.2]
|
| 37 |
+
abs_errors: 0.0
|
| 38 |
+
consistent_rel_err: false
|
| 39 |
+
logdist: false
|
| 40 |
+
apply_shift: true
|
| 41 |
+
shift_range: [-0.3, 0.3]
|
| 42 |
+
apply_scaling: true
|
| 43 |
+
scale_range: [-0.02, 0.02]
|
| 44 |
+
apply_background: true
|
| 45 |
+
background_range: [1.0e-10, 1.0e-4]
|
| 46 |
+
add_to_context: true
|
| 47 |
+
|
| 48 |
+
smearing:
|
| 49 |
+
cls: Smearing
|
| 50 |
+
kwargs:
|
| 51 |
+
sigma_range: [0.01, 0.10]
|
| 52 |
+
constant_dq: False
|
| 53 |
+
gauss_num: 17
|
| 54 |
+
share_smeared: 0.8
|
| 55 |
+
|
| 56 |
+
curves_scaler:
|
| 57 |
+
cls: LogAffineCurvesScaler
|
| 58 |
+
kwargs:
|
| 59 |
+
weight: 0.2
|
| 60 |
+
bias: 1.0
|
| 61 |
+
eps: 1.0e-10
|
| 62 |
+
|
| 63 |
+
model:
|
| 64 |
+
network:
|
| 65 |
+
cls: NetworkWithPriorsConvEmb
|
| 66 |
+
pretrained_name: null
|
| 67 |
+
device: 'cuda'
|
| 68 |
+
kwargs:
|
| 69 |
+
in_channels: 1
|
| 70 |
+
hidden_channels: [32, 64, 128, 256, 512]
|
| 71 |
+
dim_embedding: 128
|
| 72 |
+
dim_avpool: 1
|
| 73 |
+
embedding_net_activation: 'gelu'
|
| 74 |
+
use_batch_norm: true
|
| 75 |
+
dim_out: 5
|
| 76 |
+
layer_width: 512
|
| 77 |
+
num_blocks: 8
|
| 78 |
+
repeats_per_block: 2
|
| 79 |
+
mlp_activation: 'gelu'
|
| 80 |
+
dropout_rate: 0.0
|
| 81 |
+
conditioning: 'film'
|
| 82 |
+
pretrained_embedding_net: null
|
| 83 |
+
|
| 84 |
+
training:
|
| 85 |
+
num_iterations: 100000
|
| 86 |
+
batch_size: 4096
|
| 87 |
+
lr: 1.0e-3
|
| 88 |
+
grad_accumulation_steps: 1
|
| 89 |
+
clip_grad_norm_max: null
|
| 90 |
+
update_tqdm_freq: 1
|
| 91 |
+
optimizer: AdamW
|
| 92 |
+
trainer_kwargs:
|
| 93 |
+
optim_kwargs:
|
| 94 |
+
betas: [0.9, 0.999]
|
| 95 |
+
weight_decay: 0.0005
|
| 96 |
+
callbacks:
|
| 97 |
+
save_best_model:
|
| 98 |
+
enable: true
|
| 99 |
+
freq: 500
|
| 100 |
+
lr_scheduler:
|
| 101 |
+
cls: StepLR
|
| 102 |
+
kwargs:
|
| 103 |
+
step_size: 50000
|
| 104 |
+
gamma: 0.1
|
| 105 |
+
logger:
|
| 106 |
+
use_neptune: false
|
configs/b_mc_point_neutron_conv_standard_L2_comp.yaml
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
general:
|
| 2 |
+
name: b_mc_point_neutron_conv_standard_L2_comp
|
| 3 |
+
root_dir: null
|
| 4 |
+
|
| 5 |
+
dset:
|
| 6 |
+
cls: ReflectivityDataLoader
|
| 7 |
+
prior_sampler:
|
| 8 |
+
cls: SubpriorParametricSampler
|
| 9 |
+
kwargs:
|
| 10 |
+
param_ranges:
|
| 11 |
+
thicknesses: [1., 500.]
|
| 12 |
+
roughnesses: [0., 60.]
|
| 13 |
+
slds: [-8., 16.]
|
| 14 |
+
bound_width_ranges:
|
| 15 |
+
thicknesses: [1.0e-2, 500.]
|
| 16 |
+
roughnesses: [1.0e-2, 60.]
|
| 17 |
+
slds: [1.0e-2, 5.]
|
| 18 |
+
model_name: standard_model
|
| 19 |
+
max_num_layers: 2
|
| 20 |
+
constrained_roughness: true
|
| 21 |
+
max_thickness_share: 0.5
|
| 22 |
+
logdist: false
|
| 23 |
+
scale_params_by_ranges: false
|
| 24 |
+
scaled_range: [-1., 1.]
|
| 25 |
+
device: 'cuda'
|
| 26 |
+
|
| 27 |
+
q_generator:
|
| 28 |
+
cls: ConstantQ
|
| 29 |
+
kwargs:
|
| 30 |
+
q: [0.005, 0.2, 128]
|
| 31 |
+
device: 'cuda'
|
| 32 |
+
|
| 33 |
+
intensity_noise:
|
| 34 |
+
cls: BasicExpIntensityNoise
|
| 35 |
+
kwargs:
|
| 36 |
+
relative_errors: [0.0, 0.2]
|
| 37 |
+
abs_errors: 0.0
|
| 38 |
+
consistent_rel_err: false
|
| 39 |
+
logdist: false
|
| 40 |
+
apply_shift: true
|
| 41 |
+
shift_range: [-0.3, 0.3]
|
| 42 |
+
apply_scaling: true
|
| 43 |
+
scale_range: [-0.02, 0.02]
|
| 44 |
+
apply_background: true
|
| 45 |
+
background_range: [1.0e-10, 1.0e-4]
|
| 46 |
+
add_to_context: true
|
| 47 |
+
|
| 48 |
+
smearing:
|
| 49 |
+
cls: Smearing
|
| 50 |
+
kwargs:
|
| 51 |
+
sigma_range: [0.01, 0.10]
|
| 52 |
+
constant_dq: False
|
| 53 |
+
gauss_num: 17
|
| 54 |
+
share_smeared: 0.8
|
| 55 |
+
|
| 56 |
+
curves_scaler:
|
| 57 |
+
cls: LogAffineCurvesScaler
|
| 58 |
+
kwargs:
|
| 59 |
+
weight: 0.2
|
| 60 |
+
bias: 1.0
|
| 61 |
+
eps: 1.0e-10
|
| 62 |
+
|
| 63 |
+
model:
|
| 64 |
+
network:
|
| 65 |
+
cls: NetworkWithPriorsConvEmb
|
| 66 |
+
pretrained_name: null
|
| 67 |
+
device: 'cuda'
|
| 68 |
+
kwargs:
|
| 69 |
+
in_channels: 1
|
| 70 |
+
hidden_channels: [32, 64, 128, 256, 512]
|
| 71 |
+
dim_embedding: 128
|
| 72 |
+
dim_avpool: 1
|
| 73 |
+
embedding_net_activation: 'gelu'
|
| 74 |
+
use_batch_norm: true
|
| 75 |
+
dim_out: 8
|
| 76 |
+
layer_width: 512
|
| 77 |
+
num_blocks: 8
|
| 78 |
+
repeats_per_block: 2
|
| 79 |
+
mlp_activation: 'gelu'
|
| 80 |
+
dropout_rate: 0.0
|
| 81 |
+
conditioning: 'film'
|
| 82 |
+
pretrained_embedding_net: null
|
| 83 |
+
|
| 84 |
+
training:
|
| 85 |
+
num_iterations: 100000
|
| 86 |
+
batch_size: 4096
|
| 87 |
+
lr: 1.0e-3
|
| 88 |
+
grad_accumulation_steps: 1
|
| 89 |
+
clip_grad_norm_max: null
|
| 90 |
+
update_tqdm_freq: 1
|
| 91 |
+
optimizer: AdamW
|
| 92 |
+
trainer_kwargs:
|
| 93 |
+
optim_kwargs:
|
| 94 |
+
betas: [0.9, 0.999]
|
| 95 |
+
weight_decay: 0.0005
|
| 96 |
+
callbacks:
|
| 97 |
+
save_best_model:
|
| 98 |
+
enable: true
|
| 99 |
+
freq: 500
|
| 100 |
+
lr_scheduler:
|
| 101 |
+
cls: StepLR
|
| 102 |
+
kwargs:
|
| 103 |
+
step_size: 50000
|
| 104 |
+
gamma: 0.1
|
| 105 |
+
logger:
|
| 106 |
+
use_neptune: false
|
configs/b_mc_point_neutron_conv_standard_L3_comp.yaml
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
general:
|
| 2 |
+
name: b_mc_point_neutron_conv_standard_L3_comp
|
| 3 |
+
root_dir: null
|
| 4 |
+
|
| 5 |
+
dset:
|
| 6 |
+
cls: ReflectivityDataLoader
|
| 7 |
+
prior_sampler:
|
| 8 |
+
cls: SubpriorParametricSampler
|
| 9 |
+
kwargs:
|
| 10 |
+
param_ranges:
|
| 11 |
+
thicknesses: [1., 500.]
|
| 12 |
+
roughnesses: [0., 60.]
|
| 13 |
+
slds: [-8., 16.]
|
| 14 |
+
bound_width_ranges:
|
| 15 |
+
thicknesses: [1.0e-2, 500.]
|
| 16 |
+
roughnesses: [1.0e-2, 60.]
|
| 17 |
+
slds: [1.0e-2, 5.]
|
| 18 |
+
model_name: standard_model
|
| 19 |
+
max_num_layers: 3
|
| 20 |
+
constrained_roughness: true
|
| 21 |
+
max_thickness_share: 0.5
|
| 22 |
+
logdist: false
|
| 23 |
+
scale_params_by_ranges: false
|
| 24 |
+
scaled_range: [-1., 1.]
|
| 25 |
+
device: 'cuda'
|
| 26 |
+
|
| 27 |
+
q_generator:
|
| 28 |
+
cls: ConstantQ
|
| 29 |
+
kwargs:
|
| 30 |
+
q: [0.005, 0.2, 128]
|
| 31 |
+
device: 'cuda'
|
| 32 |
+
|
| 33 |
+
intensity_noise:
|
| 34 |
+
cls: BasicExpIntensityNoise
|
| 35 |
+
kwargs:
|
| 36 |
+
relative_errors: [0.0, 0.2]
|
| 37 |
+
abs_errors: 0.0
|
| 38 |
+
consistent_rel_err: false
|
| 39 |
+
logdist: false
|
| 40 |
+
apply_shift: true
|
| 41 |
+
shift_range: [-0.3, 0.3]
|
| 42 |
+
apply_scaling: true
|
| 43 |
+
scale_range: [-0.02, 0.02]
|
| 44 |
+
apply_background: true
|
| 45 |
+
background_range: [1.0e-10, 1.0e-4]
|
| 46 |
+
add_to_context: true
|
| 47 |
+
|
| 48 |
+
smearing:
|
| 49 |
+
cls: Smearing
|
| 50 |
+
kwargs:
|
| 51 |
+
sigma_range: [0.01, 0.10]
|
| 52 |
+
constant_dq: False
|
| 53 |
+
gauss_num: 17
|
| 54 |
+
share_smeared: 0.8
|
| 55 |
+
|
| 56 |
+
curves_scaler:
|
| 57 |
+
cls: LogAffineCurvesScaler
|
| 58 |
+
kwargs:
|
| 59 |
+
weight: 0.2
|
| 60 |
+
bias: 1.0
|
| 61 |
+
eps: 1.0e-10
|
| 62 |
+
|
| 63 |
+
model:
|
| 64 |
+
network:
|
| 65 |
+
cls: NetworkWithPriorsConvEmb
|
| 66 |
+
pretrained_name: null
|
| 67 |
+
device: 'cuda'
|
| 68 |
+
kwargs:
|
| 69 |
+
in_channels: 1
|
| 70 |
+
hidden_channels: [32, 64, 128, 256, 512]
|
| 71 |
+
dim_embedding: 128
|
| 72 |
+
dim_avpool: 1
|
| 73 |
+
embedding_net_activation: 'gelu'
|
| 74 |
+
use_batch_norm: true
|
| 75 |
+
dim_out: 11
|
| 76 |
+
layer_width: 512
|
| 77 |
+
num_blocks: 8
|
| 78 |
+
repeats_per_block: 2
|
| 79 |
+
mlp_activation: 'gelu'
|
| 80 |
+
dropout_rate: 0.0
|
| 81 |
+
conditioning: 'film'
|
| 82 |
+
pretrained_embedding_net: null
|
| 83 |
+
|
| 84 |
+
training:
|
| 85 |
+
num_iterations: 100000
|
| 86 |
+
batch_size: 4096
|
| 87 |
+
lr: 1.0e-3
|
| 88 |
+
grad_accumulation_steps: 1
|
| 89 |
+
clip_grad_norm_max: null
|
| 90 |
+
update_tqdm_freq: 1
|
| 91 |
+
optimizer: AdamW
|
| 92 |
+
trainer_kwargs:
|
| 93 |
+
optim_kwargs:
|
| 94 |
+
betas: [0.9, 0.999]
|
| 95 |
+
weight_decay: 0.0005
|
| 96 |
+
callbacks:
|
| 97 |
+
save_best_model:
|
| 98 |
+
enable: true
|
| 99 |
+
freq: 500
|
| 100 |
+
lr_scheduler:
|
| 101 |
+
cls: StepLR
|
| 102 |
+
kwargs:
|
| 103 |
+
step_size: 50000
|
| 104 |
+
gamma: 0.1
|
| 105 |
+
logger:
|
| 106 |
+
use_neptune: false
|