Files
wildminder-ComfyUI-DyPE/pyproject.toml
T
WildAi 41e8bcc38d pixelrush: fix noise-injection lambda convention (noisy output)
User report: "structure similar to the original raw image, but
completely noisy - soft non-uniform patches all over", unchanged since
pre-2.9 and across VAEs. Root cause: the corrected doc reference order
slerp(eps_pred, eps_random, 0.95) makes the injected eps 99.6% pure
random at real scales (per-pixel noise std 1.17 vs signal 1.0; mock
correlation with clean signal: 0.65 - structure visible through heavy
Gaussian-feathered noise). This is the exact caveat the doc itself
flagged for verification against the authors implementation. The
ablation only makes sense with lambda as prediction weight.

Fix: lambda weights the REFINER PREDICTION -
slerp(eps_random, eps_refined, lambda) (noise std 0.07, correlation
0.98); additive legacy mode flipped likewise to
eps_refined + (1-lambda)*eps_random. New TestLambdaConvention guards
(injected noise < 0.2 vs signal; end-to-end correlation >= 0.95).
Formula pins flipped (lambda=1 -> pure prediction). HF bounds
recalibrated from measurements (both modes ~0.583 -> >= 0.5).
Full repo suite: 1148 passed.
2026-09-02 17:19:58 +03:00

51 lines
1.4 KiB
TOML

[project]
name = "ComfyUI-DyPE"
description = "DyPE & SEGA & PixelRush & HRDiT. Artifact-free 4K+ image generation. Flux, Nunchaku, Qwen, Z-Image, Anima, Krea-2, SDXL, SD1.5"
version = "2.9.1"
requires-python = ">=3.10"
license = {file = "LICENSE"}
dependencies = ["torch", "numpy"]
[project.optional-dependencies]
test = ["pytest>=7.0", "pytest-cov>=4.0", "tomli>=1.1.0; python_version < '3.11'"]
[project.urls]
Repository = "https://github.com/wildminder/ComfyUI-DyPE"
# Used by Comfy Registry https://comfyregistry.org
[tool.comfy]
PublisherId = "wildai"
DisplayName = "DyPE"
Icon = "https://raw.githubusercontent.com/wildminder/ComfyUI-DyPE/refs/heads/main/dype-icon.png"
requires-comfyui = ">=0.28.0"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short --import-mode=importlib"
consider_namespace_packages = true
pythonpath = ["."]
markers = [
"unit: Pure unit test (no ComfyUI dependency)",
"mock_integration: Mock-based integration test",
"comfyui_integration: Requires real ComfyUI runtime (--comfyui-real)",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
[tool.ruff]
target-version = "py310"
line-length = 120
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
ignore = ["E501"]
[tool.ruff.lint.isort]
known-first-party = ["src"]