Upload 6 files
Browse files- configs/g_mc_point_neutron_intconv_standard_L1_InputQDq_size1024.yaml +123 -0
- configs/g_mc_point_neutron_intconv_standard_L2_InputQDq_size1024.yaml +123 -0
- configs/g_mc_point_neutron_intconv_standard_L2_InputQDq_size1024_1mil.yaml +123 -0
- configs/g_mc_point_neutron_intconv_standard_L2_InputQDq_size1024_dmax500.yaml +123 -0
- configs/g_mc_point_neutron_intconv_standard_L2_InputQDq_size1024_highroughness.yaml +123 -0
- configs/g_mc_point_neutron_intconv_standard_L3_InputQDq_size1024.yaml +123 -0
configs/g_mc_point_neutron_intconv_standard_L1_InputQDq_size1024.yaml
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
general:
|
| 2 |
+
name: g_mc_point_neutron_intconv_standard_L1_InputQDq_size1024
|
| 3 |
+
root_dir: null
|
| 4 |
+
|
| 5 |
+
dset:
|
| 6 |
+
cls: ReflectivityDataLoader
|
| 7 |
+
prior_sampler:
|
| 8 |
+
cls: SubpriorParametricSampler
|
| 9 |
+
kwargs:
|
| 10 |
+
param_ranges:
|
| 11 |
+
thicknesses: [1., 1500.]
|
| 12 |
+
roughnesses: [0., 60.]
|
| 13 |
+
slds: [-8., 16.]
|
| 14 |
+
r_scale: [0.9, 1.1]
|
| 15 |
+
log10_background: [-10.0, -4.0]
|
| 16 |
+
bound_width_ranges:
|
| 17 |
+
thicknesses: [1.0e-2, 1500.]
|
| 18 |
+
roughnesses: [1.0e-2, 60.]
|
| 19 |
+
slds: [1.0e-2, 5.]
|
| 20 |
+
r_scale: [1.0e-3, 0.2]
|
| 21 |
+
log10_background: [1.0e-2, 6.0]
|
| 22 |
+
shift_param_config:
|
| 23 |
+
r_scale: true
|
| 24 |
+
log10_background: true
|
| 25 |
+
model_name: standard_model
|
| 26 |
+
max_num_layers: 1
|
| 27 |
+
constrained_roughness: true
|
| 28 |
+
max_thickness_share: 0.5
|
| 29 |
+
logdist: false
|
| 30 |
+
scale_params_by_ranges: false
|
| 31 |
+
scaled_range: [-1., 1.]
|
| 32 |
+
device: 'cuda'
|
| 33 |
+
|
| 34 |
+
q_generator:
|
| 35 |
+
cls: MaskedVariableQ
|
| 36 |
+
kwargs:
|
| 37 |
+
q_min_range: [0.001, 0.02]
|
| 38 |
+
q_max_range: [0.05, 0.4]
|
| 39 |
+
n_q_range: [50, 256]
|
| 40 |
+
mode: 'mixed' # 'equidistant', 'random', 'mixed'
|
| 41 |
+
shuffle_mask: False
|
| 42 |
+
total_thickness_constraint: True
|
| 43 |
+
min_points_per_fringe: 4
|
| 44 |
+
device: 'cuda'
|
| 45 |
+
|
| 46 |
+
intensity_noise:
|
| 47 |
+
cls: GaussianExpIntensityNoise
|
| 48 |
+
kwargs:
|
| 49 |
+
relative_errors: [0.01, 0.3]
|
| 50 |
+
add_to_context: true
|
| 51 |
+
|
| 52 |
+
smearing:
|
| 53 |
+
cls: Smearing
|
| 54 |
+
kwargs:
|
| 55 |
+
sigma_range: [0.01, 0.12]
|
| 56 |
+
gauss_num: 17
|
| 57 |
+
share_smeared: 1.0
|
| 58 |
+
|
| 59 |
+
curves_scaler:
|
| 60 |
+
cls: LogAffineCurvesScaler
|
| 61 |
+
kwargs:
|
| 62 |
+
weight: 0.2
|
| 63 |
+
bias: 1.0
|
| 64 |
+
eps: 1.0e-10
|
| 65 |
+
|
| 66 |
+
model:
|
| 67 |
+
network:
|
| 68 |
+
cls: NetworkWithPriors
|
| 69 |
+
pretrained_name: null
|
| 70 |
+
device: 'cuda'
|
| 71 |
+
kwargs:
|
| 72 |
+
embedding_net_type: 'integral_conv'
|
| 73 |
+
embedding_net_kwargs:
|
| 74 |
+
z_num: [64, 128, 256]
|
| 75 |
+
z_range: [0., 0.41]
|
| 76 |
+
dim_embedding: 256
|
| 77 |
+
in_dim: 1
|
| 78 |
+
num_blocks: 4
|
| 79 |
+
kernel_coef: 16
|
| 80 |
+
use_layer_norm: true
|
| 81 |
+
conv_dims: [32, 64, 128]
|
| 82 |
+
pretrained_embedding_net: null
|
| 83 |
+
dim_out: 7
|
| 84 |
+
dim_conditioning_params: 1
|
| 85 |
+
layer_width: 1024
|
| 86 |
+
num_blocks: 8
|
| 87 |
+
repeats_per_block: 2
|
| 88 |
+
residual: true
|
| 89 |
+
use_batch_norm: true
|
| 90 |
+
use_layer_norm: false
|
| 91 |
+
mlp_activation: 'gelu'
|
| 92 |
+
dropout_rate: 0.0
|
| 93 |
+
tanh_output: false
|
| 94 |
+
conditioning: 'film'
|
| 95 |
+
concat_condition_first_layer: false
|
| 96 |
+
|
| 97 |
+
training:
|
| 98 |
+
trainer_cls: PointEstimatorTrainer
|
| 99 |
+
num_iterations: 300000
|
| 100 |
+
batch_size: 4096
|
| 101 |
+
lr: 1.0e-3
|
| 102 |
+
grad_accumulation_steps: 1
|
| 103 |
+
clip_grad_norm_max: null
|
| 104 |
+
update_tqdm_freq: 1
|
| 105 |
+
optimizer: AdamW
|
| 106 |
+
trainer_kwargs:
|
| 107 |
+
train_with_q_input: false
|
| 108 |
+
condition_on_q_resolutions: true
|
| 109 |
+
rescale_loss_interval_width: true
|
| 110 |
+
use_l1_loss: true
|
| 111 |
+
optim_kwargs:
|
| 112 |
+
betas: [0.9, 0.999]
|
| 113 |
+
weight_decay: 0.0005
|
| 114 |
+
callbacks:
|
| 115 |
+
save_best_model:
|
| 116 |
+
enable: true
|
| 117 |
+
freq: 500
|
| 118 |
+
lr_scheduler:
|
| 119 |
+
cls: CosineAnnealingWithWarmup
|
| 120 |
+
kwargs:
|
| 121 |
+
min_lr: 1.0e-6
|
| 122 |
+
warmup_iters: 500
|
| 123 |
+
total_iters: 300000
|
configs/g_mc_point_neutron_intconv_standard_L2_InputQDq_size1024.yaml
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
general:
|
| 2 |
+
name: g_mc_point_neutron_intconv_standard_L2_InputQDq_size1024
|
| 3 |
+
root_dir: null
|
| 4 |
+
|
| 5 |
+
dset:
|
| 6 |
+
cls: ReflectivityDataLoader
|
| 7 |
+
prior_sampler:
|
| 8 |
+
cls: SubpriorParametricSampler
|
| 9 |
+
kwargs:
|
| 10 |
+
param_ranges:
|
| 11 |
+
thicknesses: [1., 1500.]
|
| 12 |
+
roughnesses: [0., 60.]
|
| 13 |
+
slds: [-8., 16.]
|
| 14 |
+
r_scale: [0.9, 1.1]
|
| 15 |
+
log10_background: [-10.0, -4.0]
|
| 16 |
+
bound_width_ranges:
|
| 17 |
+
thicknesses: [1.0e-2, 1500.]
|
| 18 |
+
roughnesses: [1.0e-2, 60.]
|
| 19 |
+
slds: [1.0e-2, 5.]
|
| 20 |
+
r_scale: [1.0e-3, 0.2]
|
| 21 |
+
log10_background: [1.0e-2, 6.0]
|
| 22 |
+
shift_param_config:
|
| 23 |
+
r_scale: true
|
| 24 |
+
log10_background: true
|
| 25 |
+
model_name: standard_model
|
| 26 |
+
max_num_layers: 2
|
| 27 |
+
constrained_roughness: true
|
| 28 |
+
max_thickness_share: 0.5
|
| 29 |
+
logdist: false
|
| 30 |
+
scale_params_by_ranges: false
|
| 31 |
+
scaled_range: [-1., 1.]
|
| 32 |
+
device: 'cuda'
|
| 33 |
+
|
| 34 |
+
q_generator:
|
| 35 |
+
cls: MaskedVariableQ
|
| 36 |
+
kwargs:
|
| 37 |
+
q_min_range: [0.001, 0.02]
|
| 38 |
+
q_max_range: [0.05, 0.4]
|
| 39 |
+
n_q_range: [50, 256]
|
| 40 |
+
mode: 'mixed' # 'equidistant', 'random', 'mixed'
|
| 41 |
+
shuffle_mask: False
|
| 42 |
+
total_thickness_constraint: True
|
| 43 |
+
min_points_per_fringe: 4
|
| 44 |
+
device: 'cuda'
|
| 45 |
+
|
| 46 |
+
intensity_noise:
|
| 47 |
+
cls: GaussianExpIntensityNoise
|
| 48 |
+
kwargs:
|
| 49 |
+
relative_errors: [0.01, 0.3]
|
| 50 |
+
add_to_context: true
|
| 51 |
+
|
| 52 |
+
smearing:
|
| 53 |
+
cls: Smearing
|
| 54 |
+
kwargs:
|
| 55 |
+
sigma_range: [0.01, 0.12]
|
| 56 |
+
gauss_num: 17
|
| 57 |
+
share_smeared: 1.0
|
| 58 |
+
|
| 59 |
+
curves_scaler:
|
| 60 |
+
cls: LogAffineCurvesScaler
|
| 61 |
+
kwargs:
|
| 62 |
+
weight: 0.2
|
| 63 |
+
bias: 1.0
|
| 64 |
+
eps: 1.0e-10
|
| 65 |
+
|
| 66 |
+
model:
|
| 67 |
+
network:
|
| 68 |
+
cls: NetworkWithPriors
|
| 69 |
+
pretrained_name: null
|
| 70 |
+
device: 'cuda'
|
| 71 |
+
kwargs:
|
| 72 |
+
embedding_net_type: 'integral_conv'
|
| 73 |
+
embedding_net_kwargs:
|
| 74 |
+
z_num: [64, 128, 256]
|
| 75 |
+
z_range: [0., 0.41]
|
| 76 |
+
dim_embedding: 256
|
| 77 |
+
in_dim: 1
|
| 78 |
+
num_blocks: 4
|
| 79 |
+
kernel_coef: 16
|
| 80 |
+
use_layer_norm: true
|
| 81 |
+
conv_dims: [32, 64, 128]
|
| 82 |
+
pretrained_embedding_net: null
|
| 83 |
+
dim_out: 10
|
| 84 |
+
dim_conditioning_params: 1
|
| 85 |
+
layer_width: 1024
|
| 86 |
+
num_blocks: 8
|
| 87 |
+
repeats_per_block: 2
|
| 88 |
+
residual: true
|
| 89 |
+
use_batch_norm: true
|
| 90 |
+
use_layer_norm: false
|
| 91 |
+
mlp_activation: 'gelu'
|
| 92 |
+
dropout_rate: 0.0
|
| 93 |
+
tanh_output: false
|
| 94 |
+
conditioning: 'film'
|
| 95 |
+
concat_condition_first_layer: false
|
| 96 |
+
|
| 97 |
+
training:
|
| 98 |
+
trainer_cls: PointEstimatorTrainer
|
| 99 |
+
num_iterations: 300000
|
| 100 |
+
batch_size: 4096
|
| 101 |
+
lr: 1.0e-3
|
| 102 |
+
grad_accumulation_steps: 1
|
| 103 |
+
clip_grad_norm_max: null
|
| 104 |
+
update_tqdm_freq: 1
|
| 105 |
+
optimizer: AdamW
|
| 106 |
+
trainer_kwargs:
|
| 107 |
+
train_with_q_input: false
|
| 108 |
+
condition_on_q_resolutions: true
|
| 109 |
+
rescale_loss_interval_width: true
|
| 110 |
+
use_l1_loss: true
|
| 111 |
+
optim_kwargs:
|
| 112 |
+
betas: [0.9, 0.999]
|
| 113 |
+
weight_decay: 0.0005
|
| 114 |
+
callbacks:
|
| 115 |
+
save_best_model:
|
| 116 |
+
enable: true
|
| 117 |
+
freq: 500
|
| 118 |
+
lr_scheduler:
|
| 119 |
+
cls: CosineAnnealingWithWarmup
|
| 120 |
+
kwargs:
|
| 121 |
+
min_lr: 1.0e-6
|
| 122 |
+
warmup_iters: 500
|
| 123 |
+
total_iters: 300000
|
configs/g_mc_point_neutron_intconv_standard_L2_InputQDq_size1024_1mil.yaml
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
general:
|
| 2 |
+
name: g_mc_point_neutron_intconv_standard_L2_InputQDq_size1024_1mil
|
| 3 |
+
root_dir: null
|
| 4 |
+
|
| 5 |
+
dset:
|
| 6 |
+
cls: ReflectivityDataLoader
|
| 7 |
+
prior_sampler:
|
| 8 |
+
cls: SubpriorParametricSampler
|
| 9 |
+
kwargs:
|
| 10 |
+
param_ranges:
|
| 11 |
+
thicknesses: [1., 1500.]
|
| 12 |
+
roughnesses: [0., 60.]
|
| 13 |
+
slds: [-8., 16.]
|
| 14 |
+
r_scale: [0.9, 1.1]
|
| 15 |
+
log10_background: [-10.0, -4.0]
|
| 16 |
+
bound_width_ranges:
|
| 17 |
+
thicknesses: [1.0e-2, 1500.]
|
| 18 |
+
roughnesses: [1.0e-2, 60.]
|
| 19 |
+
slds: [1.0e-2, 5.]
|
| 20 |
+
r_scale: [1.0e-3, 0.2]
|
| 21 |
+
log10_background: [1.0e-2, 6.0]
|
| 22 |
+
shift_param_config:
|
| 23 |
+
r_scale: true
|
| 24 |
+
log10_background: true
|
| 25 |
+
model_name: standard_model
|
| 26 |
+
max_num_layers: 2
|
| 27 |
+
constrained_roughness: true
|
| 28 |
+
max_thickness_share: 0.5
|
| 29 |
+
logdist: false
|
| 30 |
+
scale_params_by_ranges: false
|
| 31 |
+
scaled_range: [-1., 1.]
|
| 32 |
+
device: 'cuda'
|
| 33 |
+
|
| 34 |
+
q_generator:
|
| 35 |
+
cls: MaskedVariableQ
|
| 36 |
+
kwargs:
|
| 37 |
+
q_min_range: [0.001, 0.02]
|
| 38 |
+
q_max_range: [0.05, 0.4]
|
| 39 |
+
n_q_range: [50, 256]
|
| 40 |
+
mode: 'mixed' # 'equidistant', 'random', 'mixed'
|
| 41 |
+
shuffle_mask: False
|
| 42 |
+
total_thickness_constraint: True
|
| 43 |
+
min_points_per_fringe: 4
|
| 44 |
+
device: 'cuda'
|
| 45 |
+
|
| 46 |
+
intensity_noise:
|
| 47 |
+
cls: GaussianExpIntensityNoise
|
| 48 |
+
kwargs:
|
| 49 |
+
relative_errors: [0.01, 0.3]
|
| 50 |
+
add_to_context: true
|
| 51 |
+
|
| 52 |
+
smearing:
|
| 53 |
+
cls: Smearing
|
| 54 |
+
kwargs:
|
| 55 |
+
sigma_range: [0.01, 0.12]
|
| 56 |
+
gauss_num: 17
|
| 57 |
+
share_smeared: 1.0
|
| 58 |
+
|
| 59 |
+
curves_scaler:
|
| 60 |
+
cls: LogAffineCurvesScaler
|
| 61 |
+
kwargs:
|
| 62 |
+
weight: 0.2
|
| 63 |
+
bias: 1.0
|
| 64 |
+
eps: 1.0e-10
|
| 65 |
+
|
| 66 |
+
model:
|
| 67 |
+
network:
|
| 68 |
+
cls: NetworkWithPriors
|
| 69 |
+
pretrained_name: null
|
| 70 |
+
device: 'cuda'
|
| 71 |
+
kwargs:
|
| 72 |
+
embedding_net_type: 'integral_conv'
|
| 73 |
+
embedding_net_kwargs:
|
| 74 |
+
z_num: [64, 128, 256]
|
| 75 |
+
z_range: [0., 0.41]
|
| 76 |
+
dim_embedding: 256
|
| 77 |
+
in_dim: 1
|
| 78 |
+
num_blocks: 4
|
| 79 |
+
kernel_coef: 16
|
| 80 |
+
use_layer_norm: true
|
| 81 |
+
conv_dims: [32, 64, 128]
|
| 82 |
+
pretrained_embedding_net: null
|
| 83 |
+
dim_out: 10
|
| 84 |
+
dim_conditioning_params: 1
|
| 85 |
+
layer_width: 1024
|
| 86 |
+
num_blocks: 8
|
| 87 |
+
repeats_per_block: 2
|
| 88 |
+
residual: true
|
| 89 |
+
use_batch_norm: true
|
| 90 |
+
use_layer_norm: false
|
| 91 |
+
mlp_activation: 'gelu'
|
| 92 |
+
dropout_rate: 0.0
|
| 93 |
+
tanh_output: false
|
| 94 |
+
conditioning: 'film'
|
| 95 |
+
concat_condition_first_layer: false
|
| 96 |
+
|
| 97 |
+
training:
|
| 98 |
+
trainer_cls: PointEstimatorTrainer
|
| 99 |
+
num_iterations: 1000000 #####
|
| 100 |
+
batch_size: 4096
|
| 101 |
+
lr: 1.0e-3
|
| 102 |
+
grad_accumulation_steps: 1
|
| 103 |
+
clip_grad_norm_max: null
|
| 104 |
+
update_tqdm_freq: 1
|
| 105 |
+
optimizer: AdamW
|
| 106 |
+
trainer_kwargs:
|
| 107 |
+
train_with_q_input: false
|
| 108 |
+
condition_on_q_resolutions: true
|
| 109 |
+
rescale_loss_interval_width: true
|
| 110 |
+
use_l1_loss: true
|
| 111 |
+
optim_kwargs:
|
| 112 |
+
betas: [0.9, 0.999]
|
| 113 |
+
weight_decay: 0.0005
|
| 114 |
+
callbacks:
|
| 115 |
+
save_best_model:
|
| 116 |
+
enable: true
|
| 117 |
+
freq: 500
|
| 118 |
+
lr_scheduler:
|
| 119 |
+
cls: CosineAnnealingWithWarmup
|
| 120 |
+
kwargs:
|
| 121 |
+
min_lr: 1.0e-6
|
| 122 |
+
warmup_iters: 500
|
| 123 |
+
total_iters: 1000000 #####
|
configs/g_mc_point_neutron_intconv_standard_L2_InputQDq_size1024_dmax500.yaml
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
general:
|
| 2 |
+
name: g_mc_point_neutron_intconv_standard_L2_InputQDq_size1024_dmax500
|
| 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 |
+
r_scale: [0.9, 1.1]
|
| 15 |
+
log10_background: [-10.0, -4.0]
|
| 16 |
+
bound_width_ranges:
|
| 17 |
+
thicknesses: [1.0e-2, 500.] ####
|
| 18 |
+
roughnesses: [1.0e-2, 60.]
|
| 19 |
+
slds: [1.0e-2, 5.]
|
| 20 |
+
r_scale: [1.0e-3, 0.2]
|
| 21 |
+
log10_background: [1.0e-2, 6.0]
|
| 22 |
+
shift_param_config:
|
| 23 |
+
r_scale: true
|
| 24 |
+
log10_background: true
|
| 25 |
+
model_name: standard_model
|
| 26 |
+
max_num_layers: 2
|
| 27 |
+
constrained_roughness: true
|
| 28 |
+
max_thickness_share: 0.5
|
| 29 |
+
logdist: false
|
| 30 |
+
scale_params_by_ranges: false
|
| 31 |
+
scaled_range: [-1., 1.]
|
| 32 |
+
device: 'cuda'
|
| 33 |
+
|
| 34 |
+
q_generator:
|
| 35 |
+
cls: MaskedVariableQ
|
| 36 |
+
kwargs:
|
| 37 |
+
q_min_range: [0.001, 0.02]
|
| 38 |
+
q_max_range: [0.05, 0.4]
|
| 39 |
+
n_q_range: [50, 256]
|
| 40 |
+
mode: 'mixed' # 'equidistant', 'random', 'mixed'
|
| 41 |
+
shuffle_mask: False
|
| 42 |
+
total_thickness_constraint: True
|
| 43 |
+
min_points_per_fringe: 4
|
| 44 |
+
device: 'cuda'
|
| 45 |
+
|
| 46 |
+
intensity_noise:
|
| 47 |
+
cls: GaussianExpIntensityNoise
|
| 48 |
+
kwargs:
|
| 49 |
+
relative_errors: [0.01, 0.3]
|
| 50 |
+
add_to_context: true
|
| 51 |
+
|
| 52 |
+
smearing:
|
| 53 |
+
cls: Smearing
|
| 54 |
+
kwargs:
|
| 55 |
+
sigma_range: [0.01, 0.12]
|
| 56 |
+
gauss_num: 17
|
| 57 |
+
share_smeared: 1.0
|
| 58 |
+
|
| 59 |
+
curves_scaler:
|
| 60 |
+
cls: LogAffineCurvesScaler
|
| 61 |
+
kwargs:
|
| 62 |
+
weight: 0.2
|
| 63 |
+
bias: 1.0
|
| 64 |
+
eps: 1.0e-10
|
| 65 |
+
|
| 66 |
+
model:
|
| 67 |
+
network:
|
| 68 |
+
cls: NetworkWithPriors
|
| 69 |
+
pretrained_name: null
|
| 70 |
+
device: 'cuda'
|
| 71 |
+
kwargs:
|
| 72 |
+
embedding_net_type: 'integral_conv'
|
| 73 |
+
embedding_net_kwargs:
|
| 74 |
+
z_num: [64, 128, 256]
|
| 75 |
+
z_range: [0., 0.41]
|
| 76 |
+
dim_embedding: 256
|
| 77 |
+
in_dim: 1
|
| 78 |
+
num_blocks: 4
|
| 79 |
+
kernel_coef: 16
|
| 80 |
+
use_layer_norm: true
|
| 81 |
+
conv_dims: [32, 64, 128]
|
| 82 |
+
pretrained_embedding_net: null
|
| 83 |
+
dim_out: 10
|
| 84 |
+
dim_conditioning_params: 1
|
| 85 |
+
layer_width: 1024
|
| 86 |
+
num_blocks: 8
|
| 87 |
+
repeats_per_block: 2
|
| 88 |
+
residual: true
|
| 89 |
+
use_batch_norm: true
|
| 90 |
+
use_layer_norm: false
|
| 91 |
+
mlp_activation: 'gelu'
|
| 92 |
+
dropout_rate: 0.0
|
| 93 |
+
tanh_output: false
|
| 94 |
+
conditioning: 'film'
|
| 95 |
+
concat_condition_first_layer: false
|
| 96 |
+
|
| 97 |
+
training:
|
| 98 |
+
trainer_cls: PointEstimatorTrainer
|
| 99 |
+
num_iterations: 300000
|
| 100 |
+
batch_size: 4096
|
| 101 |
+
lr: 1.0e-3
|
| 102 |
+
grad_accumulation_steps: 1
|
| 103 |
+
clip_grad_norm_max: null
|
| 104 |
+
update_tqdm_freq: 1
|
| 105 |
+
optimizer: AdamW
|
| 106 |
+
trainer_kwargs:
|
| 107 |
+
train_with_q_input: false
|
| 108 |
+
condition_on_q_resolutions: true
|
| 109 |
+
rescale_loss_interval_width: true
|
| 110 |
+
use_l1_loss: true
|
| 111 |
+
optim_kwargs:
|
| 112 |
+
betas: [0.9, 0.999]
|
| 113 |
+
weight_decay: 0.0005
|
| 114 |
+
callbacks:
|
| 115 |
+
save_best_model:
|
| 116 |
+
enable: true
|
| 117 |
+
freq: 500
|
| 118 |
+
lr_scheduler:
|
| 119 |
+
cls: CosineAnnealingWithWarmup
|
| 120 |
+
kwargs:
|
| 121 |
+
min_lr: 1.0e-6
|
| 122 |
+
warmup_iters: 500
|
| 123 |
+
total_iters: 300000
|
configs/g_mc_point_neutron_intconv_standard_L2_InputQDq_size1024_highroughness.yaml
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
general:
|
| 2 |
+
name: g_mc_point_neutron_intconv_standard_L2_InputQDq_size1024_highroughness
|
| 3 |
+
root_dir: null
|
| 4 |
+
|
| 5 |
+
dset:
|
| 6 |
+
cls: ReflectivityDataLoader
|
| 7 |
+
prior_sampler:
|
| 8 |
+
cls: SubpriorParametricSampler
|
| 9 |
+
kwargs:
|
| 10 |
+
param_ranges:
|
| 11 |
+
thicknesses: [1., 1500.]
|
| 12 |
+
roughnesses: [0., 350.]
|
| 13 |
+
slds: [-8., 16.]
|
| 14 |
+
r_scale: [0.9, 1.1]
|
| 15 |
+
log10_background: [-10.0, -4.0]
|
| 16 |
+
bound_width_ranges:
|
| 17 |
+
thicknesses: [1.0e-2, 1500.]
|
| 18 |
+
roughnesses: [1.0e-2, 350.]
|
| 19 |
+
slds: [1.0e-2, 5.]
|
| 20 |
+
r_scale: [1.0e-3, 0.2]
|
| 21 |
+
log10_background: [1.0e-2, 6.0]
|
| 22 |
+
shift_param_config:
|
| 23 |
+
r_scale: true
|
| 24 |
+
log10_background: true
|
| 25 |
+
model_name: standard_model
|
| 26 |
+
max_num_layers: 2
|
| 27 |
+
constrained_roughness: true
|
| 28 |
+
max_thickness_share: 0.5
|
| 29 |
+
logdist: false
|
| 30 |
+
scale_params_by_ranges: false
|
| 31 |
+
scaled_range: [-1., 1.]
|
| 32 |
+
device: 'cuda'
|
| 33 |
+
|
| 34 |
+
q_generator:
|
| 35 |
+
cls: MaskedVariableQ
|
| 36 |
+
kwargs:
|
| 37 |
+
q_min_range: [0.001, 0.02]
|
| 38 |
+
q_max_range: [0.05, 0.4]
|
| 39 |
+
n_q_range: [50, 256]
|
| 40 |
+
mode: 'mixed' # 'equidistant', 'random', 'mixed'
|
| 41 |
+
shuffle_mask: False
|
| 42 |
+
total_thickness_constraint: True
|
| 43 |
+
min_points_per_fringe: 4
|
| 44 |
+
device: 'cuda'
|
| 45 |
+
|
| 46 |
+
intensity_noise:
|
| 47 |
+
cls: GaussianExpIntensityNoise
|
| 48 |
+
kwargs:
|
| 49 |
+
relative_errors: [0.01, 0.3]
|
| 50 |
+
add_to_context: true
|
| 51 |
+
|
| 52 |
+
smearing:
|
| 53 |
+
cls: Smearing
|
| 54 |
+
kwargs:
|
| 55 |
+
sigma_range: [0.01, 0.12]
|
| 56 |
+
gauss_num: 17
|
| 57 |
+
share_smeared: 1.0
|
| 58 |
+
|
| 59 |
+
curves_scaler:
|
| 60 |
+
cls: LogAffineCurvesScaler
|
| 61 |
+
kwargs:
|
| 62 |
+
weight: 0.2
|
| 63 |
+
bias: 1.0
|
| 64 |
+
eps: 1.0e-10
|
| 65 |
+
|
| 66 |
+
model:
|
| 67 |
+
network:
|
| 68 |
+
cls: NetworkWithPriors
|
| 69 |
+
pretrained_name: null
|
| 70 |
+
device: 'cuda'
|
| 71 |
+
kwargs:
|
| 72 |
+
embedding_net_type: 'integral_conv'
|
| 73 |
+
embedding_net_kwargs:
|
| 74 |
+
z_num: [64, 128, 256]
|
| 75 |
+
z_range: [0., 0.41]
|
| 76 |
+
dim_embedding: 256
|
| 77 |
+
in_dim: 1
|
| 78 |
+
num_blocks: 4
|
| 79 |
+
kernel_coef: 16
|
| 80 |
+
use_layer_norm: true
|
| 81 |
+
conv_dims: [32, 64, 128]
|
| 82 |
+
pretrained_embedding_net: null
|
| 83 |
+
dim_out: 10
|
| 84 |
+
dim_conditioning_params: 1
|
| 85 |
+
layer_width: 1024
|
| 86 |
+
num_blocks: 8
|
| 87 |
+
repeats_per_block: 2
|
| 88 |
+
residual: true
|
| 89 |
+
use_batch_norm: true
|
| 90 |
+
use_layer_norm: false
|
| 91 |
+
mlp_activation: 'gelu'
|
| 92 |
+
dropout_rate: 0.0
|
| 93 |
+
tanh_output: false
|
| 94 |
+
conditioning: 'film'
|
| 95 |
+
concat_condition_first_layer: false
|
| 96 |
+
|
| 97 |
+
training:
|
| 98 |
+
trainer_cls: PointEstimatorTrainer
|
| 99 |
+
num_iterations: 300000
|
| 100 |
+
batch_size: 4096
|
| 101 |
+
lr: 1.0e-3
|
| 102 |
+
grad_accumulation_steps: 1
|
| 103 |
+
clip_grad_norm_max: null
|
| 104 |
+
update_tqdm_freq: 1
|
| 105 |
+
optimizer: AdamW
|
| 106 |
+
trainer_kwargs:
|
| 107 |
+
train_with_q_input: false
|
| 108 |
+
condition_on_q_resolutions: true
|
| 109 |
+
rescale_loss_interval_width: true
|
| 110 |
+
use_l1_loss: true
|
| 111 |
+
optim_kwargs:
|
| 112 |
+
betas: [0.9, 0.999]
|
| 113 |
+
weight_decay: 0.0005
|
| 114 |
+
callbacks:
|
| 115 |
+
save_best_model:
|
| 116 |
+
enable: true
|
| 117 |
+
freq: 500
|
| 118 |
+
lr_scheduler:
|
| 119 |
+
cls: CosineAnnealingWithWarmup
|
| 120 |
+
kwargs:
|
| 121 |
+
min_lr: 1.0e-6
|
| 122 |
+
warmup_iters: 500
|
| 123 |
+
total_iters: 300000
|
configs/g_mc_point_neutron_intconv_standard_L3_InputQDq_size1024.yaml
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
general:
|
| 2 |
+
name: g_mc_point_neutron_intconv_standard_L3_InputQDq_size1024
|
| 3 |
+
root_dir: null
|
| 4 |
+
|
| 5 |
+
dset:
|
| 6 |
+
cls: ReflectivityDataLoader
|
| 7 |
+
prior_sampler:
|
| 8 |
+
cls: SubpriorParametricSampler
|
| 9 |
+
kwargs:
|
| 10 |
+
param_ranges:
|
| 11 |
+
thicknesses: [1., 1500.]
|
| 12 |
+
roughnesses: [0., 60.]
|
| 13 |
+
slds: [-8., 16.]
|
| 14 |
+
r_scale: [0.9, 1.1]
|
| 15 |
+
log10_background: [-10.0, -4.0]
|
| 16 |
+
bound_width_ranges:
|
| 17 |
+
thicknesses: [1.0e-2, 1500.]
|
| 18 |
+
roughnesses: [1.0e-2, 60.]
|
| 19 |
+
slds: [1.0e-2, 5.]
|
| 20 |
+
r_scale: [1.0e-3, 0.2]
|
| 21 |
+
log10_background: [1.0e-2, 6.0]
|
| 22 |
+
shift_param_config:
|
| 23 |
+
r_scale: true
|
| 24 |
+
log10_background: true
|
| 25 |
+
model_name: standard_model
|
| 26 |
+
max_num_layers: 3
|
| 27 |
+
constrained_roughness: true
|
| 28 |
+
max_thickness_share: 0.5
|
| 29 |
+
logdist: false
|
| 30 |
+
scale_params_by_ranges: false
|
| 31 |
+
scaled_range: [-1., 1.]
|
| 32 |
+
device: 'cuda'
|
| 33 |
+
|
| 34 |
+
q_generator:
|
| 35 |
+
cls: MaskedVariableQ
|
| 36 |
+
kwargs:
|
| 37 |
+
q_min_range: [0.001, 0.02]
|
| 38 |
+
q_max_range: [0.05, 0.4]
|
| 39 |
+
n_q_range: [50, 256]
|
| 40 |
+
mode: 'mixed' # 'equidistant', 'random', 'mixed'
|
| 41 |
+
shuffle_mask: False
|
| 42 |
+
total_thickness_constraint: True
|
| 43 |
+
min_points_per_fringe: 4
|
| 44 |
+
device: 'cuda'
|
| 45 |
+
|
| 46 |
+
intensity_noise:
|
| 47 |
+
cls: GaussianExpIntensityNoise
|
| 48 |
+
kwargs:
|
| 49 |
+
relative_errors: [0.01, 0.3]
|
| 50 |
+
add_to_context: true
|
| 51 |
+
|
| 52 |
+
smearing:
|
| 53 |
+
cls: Smearing
|
| 54 |
+
kwargs:
|
| 55 |
+
sigma_range: [0.01, 0.12]
|
| 56 |
+
gauss_num: 17
|
| 57 |
+
share_smeared: 1.0
|
| 58 |
+
|
| 59 |
+
curves_scaler:
|
| 60 |
+
cls: LogAffineCurvesScaler
|
| 61 |
+
kwargs:
|
| 62 |
+
weight: 0.2
|
| 63 |
+
bias: 1.0
|
| 64 |
+
eps: 1.0e-10
|
| 65 |
+
|
| 66 |
+
model:
|
| 67 |
+
network:
|
| 68 |
+
cls: NetworkWithPriors
|
| 69 |
+
pretrained_name: null
|
| 70 |
+
device: 'cuda'
|
| 71 |
+
kwargs:
|
| 72 |
+
embedding_net_type: 'integral_conv'
|
| 73 |
+
embedding_net_kwargs:
|
| 74 |
+
z_num: [64, 128, 256]
|
| 75 |
+
z_range: [0., 0.41]
|
| 76 |
+
dim_embedding: 256
|
| 77 |
+
in_dim: 1
|
| 78 |
+
num_blocks: 4
|
| 79 |
+
kernel_coef: 16
|
| 80 |
+
use_layer_norm: true
|
| 81 |
+
conv_dims: [32, 64, 128]
|
| 82 |
+
pretrained_embedding_net: null
|
| 83 |
+
dim_out: 13
|
| 84 |
+
dim_conditioning_params: 1
|
| 85 |
+
layer_width: 1024
|
| 86 |
+
num_blocks: 8
|
| 87 |
+
repeats_per_block: 2
|
| 88 |
+
residual: true
|
| 89 |
+
use_batch_norm: true
|
| 90 |
+
use_layer_norm: false
|
| 91 |
+
mlp_activation: 'gelu'
|
| 92 |
+
dropout_rate: 0.0
|
| 93 |
+
tanh_output: false
|
| 94 |
+
conditioning: 'film'
|
| 95 |
+
concat_condition_first_layer: false
|
| 96 |
+
|
| 97 |
+
training:
|
| 98 |
+
trainer_cls: PointEstimatorTrainer
|
| 99 |
+
num_iterations: 300000
|
| 100 |
+
batch_size: 4096
|
| 101 |
+
lr: 1.0e-3
|
| 102 |
+
grad_accumulation_steps: 1
|
| 103 |
+
clip_grad_norm_max: null
|
| 104 |
+
update_tqdm_freq: 1
|
| 105 |
+
optimizer: AdamW
|
| 106 |
+
trainer_kwargs:
|
| 107 |
+
train_with_q_input: false
|
| 108 |
+
condition_on_q_resolutions: true
|
| 109 |
+
rescale_loss_interval_width: true
|
| 110 |
+
use_l1_loss: true
|
| 111 |
+
optim_kwargs:
|
| 112 |
+
betas: [0.9, 0.999]
|
| 113 |
+
weight_decay: 0.0005
|
| 114 |
+
callbacks:
|
| 115 |
+
save_best_model:
|
| 116 |
+
enable: true
|
| 117 |
+
freq: 500
|
| 118 |
+
lr_scheduler:
|
| 119 |
+
cls: CosineAnnealingWithWarmup
|
| 120 |
+
kwargs:
|
| 121 |
+
min_lr: 1.0e-6
|
| 122 |
+
warmup_iters: 500
|
| 123 |
+
total_iters: 300000
|