-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathoriginal.py
More file actions
446 lines (357 loc) · 21.1 KB
/
original.py
File metadata and controls
446 lines (357 loc) · 21.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
# ---------------------下面这段复制到k_diffusion\sampling.py的最后面(我用的forge,别的我不知道)--------------------------------------------
@torch.no_grad()
def sample_spawner_smea(model, x, sigmas, extra_args=None, callback=None, disable=None, eta=1., s_noise=1., noise_sampler=None, alpha=0.5):
extra_args = {} if extra_args is None else extra_args
noise_sampler = default_noise_sampler(x) if noise_sampler is None else noise_sampler
s_in = x.new_ones([x.shape[0]])
old_denoised = None
for i in trange(len(sigmas) - 1, disable=disable):
current_denoised = model(x, sigmas[i] * s_in, **extra_args)
if old_denoised is not None and sigmas[i+1] > 0:
effective_denoised = (1 - alpha) * current_denoised + alpha * old_denoised
else:
effective_denoised = current_denoised
sigma_down, sigma_up = get_ancestral_step(sigmas[i], sigmas[i + 1], eta=eta)
if callback is not None:
callback_payload = {'x': x, 'i': i, 'sigma': sigmas[i], 'sigma_hat': sigmas[i], 'denoised': current_denoised}
if old_denoised is not None:
callback_payload['effective_denoised'] = effective_denoised
callback(callback_payload)
d = to_d(x, sigmas[i], effective_denoised)
dt = sigma_down - sigmas[i]
x = x + d * dt
if sigmas[i + 1] > 0 and sigma_up > 0:
x = x + noise_sampler(sigmas[i], sigmas[i + 1]) * s_noise * sigma_up
old_denoised = current_denoised
return x
@torch.no_grad()
def sample_spawner_smea_beta(model, x, sigmas,
extra_args=None, callback=None, disable=None,
eta=0.85,
s_noise=1.0,
noise_sampler=None,
beta=0.55):
if not isinstance(sigmas, torch.Tensor):
sigmas = x.new_tensor(sigmas)
if not (0.0 <= beta <= 1.0):
raise ValueError("Parameter 'beta' must be between 0.0 and 1.0.")
if not (0.0 <= eta <= 1.0):
raise ValueError("Parameter 'eta' must be between 0.0 and 1.0.")
extra_args = extra_args or {}
noise_sampler = noise_sampler or default_noise_sampler(x)
s_in = x.new_ones([x.shape[0]])
old_denoised_for_beta = None
for i in trange(len(sigmas) - 1, disable=disable):
sigma_current = sigmas[i]
sigma_next_actual = sigmas[i+1]
sigma_for_model = sigma_current * s_in
denoised_at_current_sigma = model(x, sigma_for_model, **extra_args)
if old_denoised_for_beta is not None and beta > 0.0 and sigma_next_actual < sigma_current:
effective_x0_hat = (1 - beta) * denoised_at_current_sigma + beta * old_denoised_for_beta
else:
effective_x0_hat = denoised_at_current_sigma
old_denoised_for_beta = denoised_at_current_sigma
d = to_d(x, sigma_current, effective_x0_hat)
sigma_down_float, sigma_up_float = get_ancestral_step(sigma_current.item(), sigma_next_actual.item(), eta=eta)
sigma_down = x.new_tensor(sigma_down_float)
sigma_up = x.new_tensor(sigma_up_float)
if callback is not None:
callback_dict = {'x': x, 'i': i, 'sigma': sigma_current, 'sigma_hat': sigma_current, 'denoised': denoised_at_current_sigma}
if old_denoised_for_beta is not None and beta > 0.0 and 'effective_x0_hat' in locals() and effective_x0_hat is not denoised_at_current_sigma:
callback_dict['effective_denoised'] = effective_x0_hat
callback(callback_dict)
x = x + d * (sigma_down - sigma_current)
if sigma_up > 0:
added_noise = noise_sampler(sigma_current, sigma_next_actual)
x = x + added_noise * s_noise * sigma_up
return x
@torch.no_grad()
def sample_spawner_smea_dyn_beta(model, x, sigmas,
extra_args=None, callback=None, disable=None,
eta_start=0.95,
eta_end=0.70,
eta_exponent=1.0,
s_noise=1.0,
noise_sampler=None,
beta=0.55,
sigma_max_for_dyn_eta=None
):
if not isinstance(sigmas, torch.Tensor):
sigmas = x.new_tensor(sigmas)
if not (0.0 <= beta <= 1.0):
raise ValueError("Parameter 'beta' must be between 0.0 and 1.0.")
if not (0.0 <= eta_start <= 1.0) or not (0.0 <= eta_end <= 1.0):
raise ValueError("eta_start and eta_end must be between 0.0 and 1.0.")
extra_args = extra_args or {}
noise_sampler = noise_sampler or default_noise_sampler(x)
s_in = x.new_ones([x.shape[0]])
old_denoised_for_beta = None
actual_sigma_max = sigma_max_for_dyn_eta if sigma_max_for_dyn_eta is not None else sigmas[0].item()
if actual_sigma_max <= 0:
actual_sigma_max = 1.0
for i in trange(len(sigmas) - 1, disable=disable):
sigma_current = sigmas[i]
sigma_next_actual = sigmas[i+1]
current_sigma_ratio = (sigma_current.item() / actual_sigma_max) ** eta_exponent
current_sigma_ratio = max(0.0, min(1.0, current_sigma_ratio))
current_eta = eta_end + (eta_start - eta_end) * current_sigma_ratio
current_eta = max(0.0, min(1.0, current_eta))
sigma_for_model = sigma_current * s_in
denoised_at_current_sigma = model(x, sigma_for_model, **extra_args)
if old_denoised_for_beta is not None and beta > 0.0 and sigma_next_actual < sigma_current:
effective_x0_hat = (1 - beta) * denoised_at_current_sigma + beta * old_denoised_for_beta
else:
effective_x0_hat = denoised_at_current_sigma
old_denoised_for_beta = denoised_at_current_sigma
d = to_d(x, sigma_current, effective_x0_hat)
sigma_down_float, sigma_up_float = get_ancestral_step(sigma_current.item(), sigma_next_actual.item(), eta=current_eta)
sigma_down = x.new_tensor(sigma_down_float)
sigma_up = x.new_tensor(sigma_up_float)
if callback is not None:
callback_dict = {
'x': x, 'i': i, 'sigma': sigma_current, 'sigma_hat': sigma_current,
'denoised': denoised_at_current_sigma, 'current_eta': current_eta
}
if old_denoised_for_beta is not None and beta > 0.0 and 'effective_x0_hat' in locals() and effective_x0_hat is not denoised_at_current_sigma:
callback_dict['effective_denoised'] = effective_x0_hat
callback(callback_dict)
x = x + d * (sigma_down - sigma_current)
if sigma_up > 0:
added_noise = noise_sampler(sigma_current, sigma_next_actual)
x = x + added_noise * s_noise * sigma_up
return x
@torch.no_grad()
def sample_spawner_smea_dyn_beta1(model, x, sigmas,
extra_args=None, callback=None, disable=None,
eta_start=0.98,
eta_end=0.65,
eta_exponent=1.5,
s_noise=1.0,
noise_sampler=None,
beta=0.55,
sigma_max_for_dyn_eta=None
):
if not isinstance(sigmas, torch.Tensor):
sigmas = x.new_tensor(sigmas)
if not (0.0 <= beta <= 1.0):
raise ValueError("Parameter 'beta' must be between 0.0 and 1.0.")
if not (0.0 <= eta_start <= 1.0) or not (0.0 <= eta_end <= 1.0):
raise ValueError("eta_start and eta_end must be between 0.0 and 1.0.")
extra_args = extra_args or {}
noise_sampler = noise_sampler or default_noise_sampler(x)
s_in = x.new_ones([x.shape[0]])
old_denoised_for_beta = None
actual_sigma_max = sigma_max_for_dyn_eta if sigma_max_for_dyn_eta is not None else sigmas[0].item()
if actual_sigma_max <= 0:
actual_sigma_max = 1.0
for i in trange(len(sigmas) - 1, disable=disable):
sigma_current = sigmas[i]
sigma_next_actual = sigmas[i+1]
current_sigma_ratio = (sigma_current.item() / actual_sigma_max) ** eta_exponent
current_sigma_ratio = max(0.0, min(1.0, current_sigma_ratio))
current_eta = eta_end + (eta_start - eta_end) * current_sigma_ratio
current_eta = max(0.0, min(1.0, current_eta))
sigma_for_model = sigma_current * s_in
denoised_at_current_sigma = model(x, sigma_for_model, **extra_args)
if old_denoised_for_beta is not None and beta > 0.0 and sigma_next_actual < sigma_current:
effective_x0_hat = (1 - beta) * denoised_at_current_sigma + beta * old_denoised_for_beta
else:
effective_x0_hat = denoised_at_current_sigma
old_denoised_for_beta = denoised_at_current_sigma
d = to_d(x, sigma_current, effective_x0_hat)
sigma_down_float, sigma_up_float = get_ancestral_step(sigma_current.item(), sigma_next_actual.item(), eta=current_eta)
sigma_down = x.new_tensor(sigma_down_float)
sigma_up = x.new_tensor(sigma_up_float)
if callback is not None:
callback_dict = {
'x': x, 'i': i, 'sigma': sigma_current, 'sigma_hat': sigma_current,
'denoised': denoised_at_current_sigma, 'current_eta': current_eta
}
if old_denoised_for_beta is not None and beta > 0.0 and 'effective_x0_hat' in locals() and effective_x0_hat is not denoised_at_current_sigma:
callback_dict['effective_denoised'] = effective_x0_hat
callback(callback_dict)
x = x + d * (sigma_down - sigma_current)
if sigma_up > 0:
added_noise = noise_sampler(sigma_current, sigma_next_actual)
x = x + added_noise * s_noise * sigma_up
return x
@torch.no_grad()
def sample_spawner_smea_dyn_exp(model, x, sigmas,
extra_args=None, callback=None, disable=None,
smea_strength=0.7,
dyn_beta_min=0.2,
dyn_beta_max=0.9,
dyn_beta_scaler=10.0,
eta=1.0,
s_noise=1.0,
noise_sampler=None
):
if not (0.0 <= smea_strength <= 1.0):
raise ValueError("'smea_strength' must be between 0.0 and 1.0.")
extra_args = extra_args or {}
noise_sampler = noise_sampler or default_noise_sampler(x)
s_in = x.new_ones([x.shape[0]])
old_denoised_raw = None
from tqdm import trange
for i in trange(len(sigmas) - 1, disable=disable):
sigma_current = sigmas[i]
sigma_next_actual = sigmas[i + 1]
raw_denoised = model(x, sigmas[i] * s_in, **extra_args)
effective_x0_hat = raw_denoised
if smea_strength > 0.0 and old_denoised_raw is not None and sigma_next_actual < sigma_current:
dev = raw_denoised.std(dim=[1,2,3], keepdim=True) + 1e-6
old_dev = old_denoised_raw.std(dim=[1,2,3], keepdim=True) + 1e-6
mse = torch.mean(((raw_denoised / dev) - (old_denoised_raw / old_dev)) ** 2, dim=[1,2,3])
similarity_weight = torch.exp(-mse * dyn_beta_scaler)
current_beta = dyn_beta_min + (dyn_beta_max - dyn_beta_min) * similarity_weight
final_beta = smea_strength * current_beta
effective_x0_hat = (1.0 - final_beta) * raw_denoised + final_beta * old_denoised_raw
old_denoised_raw = raw_denoised
sigma_down, sigma_up = get_ancestral_step(sigma_current, sigma_next_actual, eta=eta)
d = to_d(x, sigma_current, effective_x0_hat)
dt = sigma_down - sigma_current
x = x + d * dt
if sigma_up > 0:
x = x + noise_sampler(sigma_current, sigma_next_actual) * s_noise * sigma_up
if callback is not None:
callback({'x': x, 'i': i, 'sigma': sigma_current, 'denoised': effective_x0_hat})
return x
import torch.nn.functional as F
import numpy
def gaussian_blur(image, sigma, kernel_size=5):
if sigma == 0: return image
x_cord = torch.arange(kernel_size); x_grid = x_cord.repeat(kernel_size).view(kernel_size, kernel_size)
y_grid = x_grid.t(); xy_grid = torch.stack([x_grid, y_grid], dim=-1)
mean = (kernel_size - 1)/2.; variance = sigma**2.
gaussian_kernel = (1./(2.*numpy.pi*variance)) * torch.exp(-torch.sum((xy_grid - mean)**2., dim=-1) / (2*variance))
gaussian_kernel = gaussian_kernel / torch.sum(gaussian_kernel)
kernel = gaussian_kernel.view(1, 1, kernel_size, kernel_size).repeat(image.shape[1], 1, 1, 1)
return F.conv2d(image, kernel.to(image.device, image.dtype), padding=kernel_size//2, groups=image.shape[1])
@torch.no_grad()
def sample_spawner_rk2_smea_d_clamp(model, x, sigmas, extra_args=None, callback=None, disable=None,
eta=0.3, s_noise=1.0, noise_sampler=None,
beta=0.4,
blur_sigma=0.8, blur_schedule_power=2.5, min_blur_sigma=0.1):
"""
min_blur_sigma (float): 最小模糊强度。确保在采样末端,模糊矫正不会完全消失
这是对抗“末端突变”的关键。0.05-0.2
"""
extra_args = extra_args or {}
noise_sampler = noise_sampler or default_noise_sampler(x)
s_in = x.new_ones([x.shape[0]]); old_denoised_blurred = None; max_sigma = float(sigmas[0]) if len(sigmas) > 0 else 0
for i in trange(len(sigmas) - 1, disable=disable):
sigma_from, sigma_to = sigmas[i], sigmas[i+1]
if sigma_from == 0: continue
denoised_k1_raw = model(x, sigma_from * s_in, **extra_args)
scheduled_blur_k1 = blur_sigma * (float(sigma_from) / max_sigma) ** blur_schedule_power if max_sigma > 0 else 0
final_blur_k1 = max(scheduled_blur_k1, min_blur_sigma)
denoised_k1_blurred = gaussian_blur(denoised_k1_raw, final_blur_k1)
d_current = to_d(x, sigma_from, denoised_k1_blurred)
if old_denoised_blurred is not None and beta > 0.0:
d_old = to_d(x, sigma_from, old_denoised_blurred)
k1 = (1 - beta) * d_current + beta * d_old
else: k1 = d_current
old_denoised_blurred = denoised_k1_blurred
sigma_down, sigma_up = get_ancestral_step(sigma_from, sigma_to, eta=eta)
sigma_mid = (sigma_from + sigma_down) / 2
x_mid = x + k1 * (sigma_mid - sigma_from)
denoised_k2_raw = model(x_mid, sigma_mid * s_in, **extra_args)
scheduled_blur_k2 = blur_sigma * (float(sigma_mid) / max_sigma) ** blur_schedule_power if max_sigma > 0 else 0
final_blur_k2 = max(scheduled_blur_k2, min_blur_sigma)
denoised_k2_blurred = gaussian_blur(denoised_k2_raw, final_blur_k2)
k2 = to_d(x_mid, sigma_mid, denoised_k2_blurred)
dt = sigma_down - sigma_from
x = x + k2 * dt
if sigma_up > 0: x = x + noise_sampler(sigma_from, sigma_to) * s_noise * sigma_up
if callback is not None: callback({'x': x, 'i': i, 'sigma': sigmas[i], 'sigma_hat': sigmas[i], 'denoised': denoised_k1_raw})
return x
@torch.no_grad()
def sample_spawner_smea_dyn_exp(model, x, sigmas,
extra_args=None, callback=None, disable=None,
smea_strength=0.7,
dyn_beta_min=0.2,
dyn_beta_max=0.9,
dyn_beta_scaler=10.0,
eta=1.0,
s_noise=1.0,
noise_sampler=None
):
if not (0.0 <= smea_strength <= 1.0):
raise ValueError("'smea_strength' must be between 0.0 and 1.0.")
extra_args = extra_args or {}
noise_sampler = noise_sampler or default_noise_sampler(x)
s_in = x.new_ones([x.shape[0]])
old_denoised_raw = None
from tqdm import trange
for i in trange(len(sigmas) - 1, disable=disable):
sigma_current = sigmas[i]
sigma_next_actual = sigmas[i + 1]
raw_denoised = model(x, sigmas[i] * s_in, **extra_args)
effective_x0_hat = raw_denoised
if smea_strength > 0.0 and old_denoised_raw is not None and sigma_next_actual < sigma_current:
dev = raw_denoised.std(dim=[1,2,3], keepdim=True) + 1e-6
old_dev = old_denoised_raw.std(dim=[1,2,3], keepdim=True) + 1e-6
mse = torch.mean(((raw_denoised / dev) - (old_denoised_raw / old_dev)) ** 2, dim=[1,2,3])
similarity_weight = torch.exp(-mse * dyn_beta_scaler)
current_beta = dyn_beta_min + (dyn_beta_max - dyn_beta_min) * similarity_weight
final_beta = smea_strength * current_beta
effective_x0_hat = (1.0 - final_beta) * raw_denoised + final_beta * old_denoised_raw
old_denoised_raw = raw_denoised
sigma_down, sigma_up = get_ancestral_step(sigma_current, sigma_next_actual, eta=eta)
d = to_d(x, sigma_current, effective_x0_hat)
dt = sigma_down - sigma_current
x = x + d * dt
if sigma_up > 0:
x = x + noise_sampler(sigma_current, sigma_next_actual) * s_noise * sigma_up
if callback is not None:
callback({'x': x, 'i': i, 'sigma': sigma_current, 'denoised': effective_x0_hat})
return x
# ---------------------下面这段在modules\sd_samplers_kdiffusion.py对应位置改(我用的forge,别的我不知道)--------------------------------------------
samplers_k_diffusion = [
('DPM++ 2M', 'sample_dpmpp_2m', ['k_dpmpp_2m'], {'scheduler': 'karras'}),
('DPM++ SDE', 'sample_dpmpp_sde', ['k_dpmpp_sde'], {'scheduler': 'karras', "second_order": True, "brownian_noise": True}),
('DPM++ 2M SDE', 'sample_dpmpp_2m_sde', ['k_dpmpp_2m_sde'], {'scheduler': 'exponential', "brownian_noise": True}),
('DPM++ 2M SDE Heun', 'sample_dpmpp_2m_sde', ['k_dpmpp_2m_sde_heun'], {'scheduler': 'exponential', "brownian_noise": True, "solver_type": "heun"}),
('DPM++ 2S a', 'sample_dpmpp_2s_ancestral', ['k_dpmpp_2s_a'], {'scheduler': 'karras', "uses_ensd": True, "second_order": True}),
('DPM++ 3M SDE', 'sample_dpmpp_3m_sde', ['k_dpmpp_3m_sde'], {'scheduler': 'exponential', 'discard_next_to_last_sigma': True, "brownian_noise": True}),
('Euler a', 'sample_euler_ancestral', ['k_euler_a', 'k_euler_ancestral'], {"uses_ensd": True}),
('Euler', 'sample_euler', ['k_euler'], {}),
('LMS', 'sample_lms', ['k_lms'], {}),
('Heun', 'sample_heun', ['k_heun'], {"second_order": True}),
('DPM2', 'sample_dpm_2', ['k_dpm_2'], {'scheduler': 'karras', 'discard_next_to_last_sigma': True, "second_order": True}),
('DPM2 a', 'sample_dpm_2_ancestral', ['k_dpm_2_a'], {'scheduler': 'karras', 'discard_next_to_last_sigma': True, "uses_ensd": True, "second_order": True}),
('DPM fast', 'sample_dpm_fast', ['k_dpm_fast'], {"uses_ensd": True}),
('DPM adaptive', 'sample_dpm_adaptive', ['k_dpm_ad'], {"uses_ensd": True}),
('Restart', sd_samplers_extra.restart_sampler, ['restart'], {'scheduler': 'karras', "second_order": True}),
('HeunPP2', 'sample_heunpp2', ['heunpp2'], {}),
('IPNDM', 'sample_ipndm', ['ipndm'], {}),
('IPNDM_V', 'sample_ipndm_v', ['ipndm_v'], {}),
('DEIS', 'sample_deis', ['deis'], {}),
('Spawner SMEA', 'sample_spawner_smea', ['k_smea'], {"uses_ensd": True}),
('Spawner SMEA (beta)','sample_spawner_smea_beta',['k_smea_nai', 'smea_b'],{"uses_ensd": True}),
('Spawner SMEA Dyn (beta)','sample_spawner_smea_dyn_beta',['k_smea_dyn_nai', 'smea_dyn_e'],{"uses_ensd": True}),
('Spawner SMEA Dyn (beta1)','sample_spawner_smea_dyn_beta1',['k_smea_dyn_nai1', 'smea_dyn_e1'],{"uses_ensd": True}),
('Spawner SMEA Dyn exp', 'sample_spawner_smea_dyn_exp', ['spawner_smea_dyn_exp'], {}),
('Spawner rk2 smea d clamp', 'sample_spawner_rk2_smea_d_clamp', ['spawner_rk2_smea_d_clamp'], {}),
]
# 相比原来加了 ('SMEA', 'sample_spawner_smea', ['k_smea'], {"uses_ensd": True}),
#('SMEA (beta)','sample_spawner_smea_beta',['k_smea_nai', 'smea_b'],{"uses_ensd": True}),
#('SMEA DYN (dyn_eta)','sample_spawner_smea_dyn_beta',['k_smea_dyn_nai', 'smea_dyn_e'],{"uses_ensd": True}),
sampler_extra_params = {
'sample_euler': ['s_churn', 's_tmin', 's_tmax', 's_noise'],
'sample_heun': ['s_churn', 's_tmin', 's_tmax', 's_noise'],
'sample_dpm_2': ['s_churn', 's_tmin', 's_tmax', 's_noise'],
'sample_dpm_fast': ['s_noise'],
'sample_dpm_2_ancestral': ['s_noise'],
'sample_dpmpp_2s_ancestral': ['s_noise'],
'sample_dpmpp_sde': ['s_noise'],
'sample_dpmpp_2m_sde': ['s_noise'],
'sample_dpmpp_3m_sde': ['s_noise'],
'sample_spawner_smea': ['s_noise', 'eta'],
'sample_spawner_smea_beta': ['eta', 's_noise', 'beta'],
'sample_spawner_smea_dyn_beta': ['eta_start', 'eta_end', 'eta_exponent', 's_noise', 'beta', 'sigma_max_for_dyn_eta'],
'sample_spawner_smea_dyn_beta1': ['eta_start', 'eta_end', 'eta_exponent', 's_noise', 'beta', 'sigma_max_for_dyn_eta'],
}
# 相比原来加了 'sample_spawner_smea': ['s_noise', 'eta'],
#'sample_spawner_smea_beta': ['eta', 's_noise', 'beta'],
#'sample_spawner_smea_dyn_beta': ['eta_start', 'eta_end', 'eta_exponent', 's_noise', 'beta', 'sigma_max_for_dyn_eta'],