界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

diffusion_noise_objective

diffusion_noise_objective

【效率与协作】Compute SR3-style conditional diffusion corruption, noise-prediction loss, and a deterministic scalar optimizer update.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: diffusion_noise_objective description: Compute SR3-style conditional diffusion corruption, noise-prediction loss, and a deterministic scalar optimizer update.

Diffusion Noise Objective

Use this skill when implementing or checking SR3 training logic. It owns timestep corruption, predicted-noise loss, and reduced scalar update math. Do not use it as a sampler.

Inputs

  • A pair with condition and target.
  • A timestep value and beta/noise schedule value.
  • A scalar denoiser parameter for reduced recovery.

Outputs

  • Noisy target, true noise, predicted noise, MSE loss, and updated parameter.

Workflow

  1. Compute a deterministic proxy noise value from the target and timestep.
  2. Mix clean target and noise according to beta.
  3. Predict noise from condition, noisy value, timestep, and the trainable scalar parameter.
  4. Compute squared error and update the scalar parameter with gradient descent.
  5. Record params_before, params_after, loss_before, and loss_after for validators.

Validation

Run python tests/test_noise_objective.py or validate the skill tree with --run-tests.

Limitations

The scalar parameter is a bounded proxy for a neural denoiser; it validates objective mechanics, not full model capacity.

我的收藏