You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if num_inner > 0 and getattr(sample_config, 'random_sigma_sampling_method', 'uniform') == 'stratified':
# Stratified: divide [sigma_min, sigma_max] into equal bins,
# sample one point per bin to guarantee minimum spacing.
bin_width = (sigma_hi - sigma_lo) / num_inner
inner_sigmas = sorted(
[_random.uniform(sigma_lo + i * bin_width, sigma_lo + (i + 1) * bin_width)
for i in range(num_inner)],
reverse=True,
)
else:
inner_sigmas = sorted(
[_random.uniform(sigma_lo, sigma_hi) for _ in range(num_inner)],
reverse=True,
)
Activity
byliutao commentedon May 21, 2026
感谢对我们工作的关注,一般来说两个setting实际上的区别并不大,建议可以按照0.02~0.98的setting先试一下,然后我们最新的实验发现可以0.02~0.98内均匀去采样n个时间步效果会比完全随机采样更好一点,可以参考如下代码
lishulinbois commentedon Sep 18, 2026
非常优秀的工作!有个问题想请教下作者,对于 flux.2 之类的模型,是否可以将均匀采样改为均匀采样 + shift 呢?shift 应该是 flux 系列相比 sd 特有的操作
byliutao commentedon Sep 18, 2026
感谢对我们工作的关注!是的,均匀采样加shift我们也实验过,确实会稍好一些。
lishulinbois commentedon Sep 18, 2026
再请教下,您在试验的时候是先在[0.02, 0.98]范围内均匀采样完再 shift 还是先 shift 之后再确定 shift 后的范围在[0.02, 0.98]范围内呢?二者的区别我理解是前者更偏向高噪声区域,这个情况对蒸馏是否存在负/正的反馈呢?
byliutao commentedon Sep 20, 2026
是先shift后再截断到[0.02,0.98]的,这个顺序应该更合理一些。