3 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
d7577069e0 Add .gitignore to exclude Python cache files
Co-authored-by: jags111 <5968619+jags111@users.noreply.github.com>
2026-02-03 23:05:54 +00:00
copilot-swe-agent[bot]
040aea25a1 Fix cfg_denoiser AttributeError by calling register_hooks()
Co-authored-by: jags111 <5968619+jags111@users.noreply.github.com>
2026-02-03 23:05:38 +00:00
copilot-swe-agent[bot]
cd682e645f Initial plan 2026-02-03 22:59:59 +00:00
2 changed files with 24 additions and 1 deletions

23
.gitignore vendored Normal file
View File

@@ -0,0 +1,23 @@
# Python cache files
__pycache__/
*.py[cod]
*$py.class
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

View File

@@ -506,7 +506,7 @@ class TSC_KSampler:
rng_source, cfg_denoiser, add_seed_noise, m_seed, m_weight = script["noise"]
smZ_rng_source.rng_rand_source(rng_source) # this function monkey patches comfy.sample.prepare_noise
if cfg_denoiser:
comfy.samplers.KSampler = smZ_cfg_denoiser.SDKSampler
smZ_cfg_denoiser.register_hooks()
if add_seed_noise:
comfy.sample.prepare_noise = cg_mixed_seed_noise.get_mixed_noise_function(comfy.sample.prepare_noise, m_seed, m_weight)
else: