Upload 2 files
Browse files
configs/g_mc_point_xray_conv_absorption_L1_InputQ_n256_size1024.yaml
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
general:
|
| 2 |
+
name: g_mc_point_xray_conv_absorption_L1_InputQ_n256_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., 500.]
|
| 12 |
+
roughnesses: [0., 60.]
|
| 13 |
+
slds: [0., 150.]
|
| 14 |
+
islds: [0., 30.]
|
| 15 |
+
q_shift: [-0.002, 0.002]
|
| 16 |
+
r_scale: [0.9, 1.1]
|
| 17 |
+
bound_width_ranges:
|
| 18 |
+
thicknesses: [1.0e-2, 500.]
|
| 19 |
+
roughnesses: [1.0e-2, 60.]
|
| 20 |
+
slds: [ 1.0e-2, 5.]
|
| 21 |
+
islds: [1.0e-2, 5.]
|
| 22 |
+
q_shift: [1.0e-5, 0.004]
|
| 23 |
+
r_scale: [1.0e-3, 0.2]
|
| 24 |
+
shift_param_config:
|
| 25 |
+
q_shift: true
|
| 26 |
+
r_scale: true
|
| 27 |
+
model_name: model_with_absorption
|
| 28 |
+
max_num_layers: 1
|
| 29 |
+
max_total_thickness: 1500
|
| 30 |
+
constrained_roughness: true
|
| 31 |
+
constrained_isld: true
|
| 32 |
+
max_thickness_share: 0.5
|
| 33 |
+
max_sld_share: 0.2
|
| 34 |
+
logdist: false
|
| 35 |
+
scale_params_by_ranges: false
|
| 36 |
+
scaled_range: [-1., 1.]
|
| 37 |
+
device: 'cuda'
|
| 38 |
+
|
| 39 |
+
q_generator:
|
| 40 |
+
cls: VariableQ
|
| 41 |
+
kwargs:
|
| 42 |
+
q_min_range: [0.001, 0.03]
|
| 43 |
+
q_max_range: [0.1, 0.5]
|
| 44 |
+
n_q_range: [256, 256]
|
| 45 |
+
device: 'cuda'
|
| 46 |
+
|
| 47 |
+
intensity_noise:
|
| 48 |
+
cls: GaussianExpIntensityNoise
|
| 49 |
+
kwargs:
|
| 50 |
+
relative_errors: [0.01, 0.3]
|
| 51 |
+
add_to_context: true
|
| 52 |
+
|
| 53 |
+
curves_scaler:
|
| 54 |
+
cls: LogAffineCurvesScaler
|
| 55 |
+
kwargs:
|
| 56 |
+
weight: 0.2
|
| 57 |
+
bias: 1.0
|
| 58 |
+
eps: 1.0e-10
|
| 59 |
+
|
| 60 |
+
model:
|
| 61 |
+
network:
|
| 62 |
+
cls: NetworkWithPriors
|
| 63 |
+
pretrained_name: null
|
| 64 |
+
device: 'cuda'
|
| 65 |
+
kwargs:
|
| 66 |
+
embedding_net_type: 'conv'
|
| 67 |
+
embedding_net_kwargs:
|
| 68 |
+
in_channels: 2
|
| 69 |
+
hidden_channels: [32, 64, 128, 256, 512]
|
| 70 |
+
kernel_size: 3
|
| 71 |
+
dim_embedding: 512
|
| 72 |
+
dim_avpool: 8
|
| 73 |
+
use_batch_norm: true
|
| 74 |
+
activation: 'gelu'
|
| 75 |
+
pretrained_embedding_net: null
|
| 76 |
+
dim_out: 9
|
| 77 |
+
dim_conditioning_params: 0
|
| 78 |
+
layer_width: 1024
|
| 79 |
+
num_blocks: 8
|
| 80 |
+
repeats_per_block: 2
|
| 81 |
+
residual: true
|
| 82 |
+
use_batch_norm: true
|
| 83 |
+
use_layer_norm: false
|
| 84 |
+
mlp_activation: 'gelu'
|
| 85 |
+
dropout_rate: 0.0
|
| 86 |
+
tanh_output: false
|
| 87 |
+
conditioning: 'film'
|
| 88 |
+
concat_condition_first_layer: false
|
| 89 |
+
|
| 90 |
+
training:
|
| 91 |
+
trainer_cls: PointEstimatorTrainer
|
| 92 |
+
num_iterations: 300000
|
| 93 |
+
batch_size: 4096
|
| 94 |
+
lr: 1.0e-3
|
| 95 |
+
grad_accumulation_steps: 1
|
| 96 |
+
clip_grad_norm_max: null
|
| 97 |
+
update_tqdm_freq: 1
|
| 98 |
+
optimizer: AdamW
|
| 99 |
+
trainer_kwargs:
|
| 100 |
+
train_with_q_input: true
|
| 101 |
+
condition_on_q_resolutions: false
|
| 102 |
+
rescale_loss_interval_width: true
|
| 103 |
+
use_l1_loss: true
|
| 104 |
+
optim_kwargs:
|
| 105 |
+
betas: [0.9, 0.999]
|
| 106 |
+
weight_decay: 0.0005
|
| 107 |
+
callbacks:
|
| 108 |
+
save_best_model:
|
| 109 |
+
enable: true
|
| 110 |
+
freq: 500
|
| 111 |
+
lr_scheduler:
|
| 112 |
+
cls: CosineAnnealingWithWarmup
|
| 113 |
+
kwargs:
|
| 114 |
+
min_lr: 1.0e-6
|
| 115 |
+
warmup_iters: 500
|
| 116 |
+
total_iters: 300000
|
configs/g_mc_point_xray_conv_absorption_L3_InputQ_n256_size1024.yaml
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
general:
|
| 2 |
+
name: g_mc_point_xray_conv_absorption_L3_InputQ_n256_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., 500.]
|
| 12 |
+
roughnesses: [0., 60.]
|
| 13 |
+
slds: [0., 150.]
|
| 14 |
+
islds: [0., 30.]
|
| 15 |
+
q_shift: [-0.002, 0.002]
|
| 16 |
+
r_scale: [0.9, 1.1]
|
| 17 |
+
bound_width_ranges:
|
| 18 |
+
thicknesses: [1.0e-2, 500.]
|
| 19 |
+
roughnesses: [1.0e-2, 60.]
|
| 20 |
+
slds: [ 1.0e-2, 5.]
|
| 21 |
+
islds: [1.0e-2, 5.]
|
| 22 |
+
q_shift: [1.0e-5, 0.004]
|
| 23 |
+
r_scale: [1.0e-3, 0.2]
|
| 24 |
+
shift_param_config:
|
| 25 |
+
q_shift: true
|
| 26 |
+
r_scale: true
|
| 27 |
+
model_name: model_with_absorption
|
| 28 |
+
max_num_layers: 3
|
| 29 |
+
max_total_thickness: 1500
|
| 30 |
+
constrained_roughness: true
|
| 31 |
+
constrained_isld: true
|
| 32 |
+
max_thickness_share: 0.5
|
| 33 |
+
max_sld_share: 0.2
|
| 34 |
+
logdist: false
|
| 35 |
+
scale_params_by_ranges: false
|
| 36 |
+
scaled_range: [-1., 1.]
|
| 37 |
+
device: 'cuda'
|
| 38 |
+
|
| 39 |
+
q_generator:
|
| 40 |
+
cls: VariableQ
|
| 41 |
+
kwargs:
|
| 42 |
+
q_min_range: [0.001, 0.03]
|
| 43 |
+
q_max_range: [0.1, 0.5]
|
| 44 |
+
n_q_range: [256, 256]
|
| 45 |
+
device: 'cuda'
|
| 46 |
+
|
| 47 |
+
intensity_noise:
|
| 48 |
+
cls: GaussianExpIntensityNoise
|
| 49 |
+
kwargs:
|
| 50 |
+
relative_errors: [0.01, 0.3]
|
| 51 |
+
add_to_context: true
|
| 52 |
+
|
| 53 |
+
curves_scaler:
|
| 54 |
+
cls: LogAffineCurvesScaler
|
| 55 |
+
kwargs:
|
| 56 |
+
weight: 0.2
|
| 57 |
+
bias: 1.0
|
| 58 |
+
eps: 1.0e-10
|
| 59 |
+
|
| 60 |
+
model:
|
| 61 |
+
network:
|
| 62 |
+
cls: NetworkWithPriors
|
| 63 |
+
pretrained_name: null
|
| 64 |
+
device: 'cuda'
|
| 65 |
+
kwargs:
|
| 66 |
+
embedding_net_type: 'conv'
|
| 67 |
+
embedding_net_kwargs:
|
| 68 |
+
in_channels: 2
|
| 69 |
+
hidden_channels: [32, 64, 128, 256, 512]
|
| 70 |
+
kernel_size: 3
|
| 71 |
+
dim_embedding: 512
|
| 72 |
+
dim_avpool: 8
|
| 73 |
+
use_batch_norm: true
|
| 74 |
+
activation: 'gelu'
|
| 75 |
+
pretrained_embedding_net: null
|
| 76 |
+
dim_out: 17
|
| 77 |
+
dim_conditioning_params: 0
|
| 78 |
+
layer_width: 1024
|
| 79 |
+
num_blocks: 8
|
| 80 |
+
repeats_per_block: 2
|
| 81 |
+
residual: true
|
| 82 |
+
use_batch_norm: true
|
| 83 |
+
use_layer_norm: false
|
| 84 |
+
mlp_activation: 'gelu'
|
| 85 |
+
dropout_rate: 0.0
|
| 86 |
+
tanh_output: false
|
| 87 |
+
conditioning: 'film'
|
| 88 |
+
concat_condition_first_layer: false
|
| 89 |
+
|
| 90 |
+
training:
|
| 91 |
+
trainer_cls: PointEstimatorTrainer
|
| 92 |
+
num_iterations: 300000
|
| 93 |
+
batch_size: 4096
|
| 94 |
+
lr: 1.0e-3
|
| 95 |
+
grad_accumulation_steps: 1
|
| 96 |
+
clip_grad_norm_max: null
|
| 97 |
+
update_tqdm_freq: 1
|
| 98 |
+
optimizer: AdamW
|
| 99 |
+
trainer_kwargs:
|
| 100 |
+
train_with_q_input: true
|
| 101 |
+
condition_on_q_resolutions: false
|
| 102 |
+
rescale_loss_interval_width: true
|
| 103 |
+
use_l1_loss: true
|
| 104 |
+
optim_kwargs:
|
| 105 |
+
betas: [0.9, 0.999]
|
| 106 |
+
weight_decay: 0.0005
|
| 107 |
+
callbacks:
|
| 108 |
+
save_best_model:
|
| 109 |
+
enable: true
|
| 110 |
+
freq: 500
|
| 111 |
+
lr_scheduler:
|
| 112 |
+
cls: CosineAnnealingWithWarmup
|
| 113 |
+
kwargs:
|
| 114 |
+
min_lr: 1.0e-6
|
| 115 |
+
warmup_iters: 500
|
| 116 |
+
total_iters: 300000
|