mirror of
https://github.com/jags111/efficiency-nodes-comfyui.git
synced 2026-05-07 01:06:42 -03:00
Compare commits
2 Commits
copilot/fi
...
copilot/fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff375071c0 | ||
|
|
6e8cb9be98 |
23
.gitignore
vendored
23
.gitignore
vendored
@@ -1,23 +0,0 @@
|
|||||||
# 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
|
|
||||||
@@ -506,7 +506,7 @@ class TSC_KSampler:
|
|||||||
rng_source, cfg_denoiser, add_seed_noise, m_seed, m_weight = script["noise"]
|
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
|
smZ_rng_source.rng_rand_source(rng_source) # this function monkey patches comfy.sample.prepare_noise
|
||||||
if cfg_denoiser:
|
if cfg_denoiser:
|
||||||
smZ_cfg_denoiser.register_hooks()
|
comfy.samplers.KSampler = smZ_cfg_denoiser.SDKSampler
|
||||||
if add_seed_noise:
|
if add_seed_noise:
|
||||||
comfy.sample.prepare_noise = cg_mixed_seed_noise.get_mixed_noise_function(comfy.sample.prepare_noise, m_seed, m_weight)
|
comfy.sample.prepare_noise = cg_mixed_seed_noise.get_mixed_noise_function(comfy.sample.prepare_noise, m_seed, m_weight)
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -117,7 +117,10 @@ class SeedControl {
|
|||||||
this.updateButtonLabel();
|
this.updateButtonLabel();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.seedWidget.value = this.serializedCtx.seedUsed;
|
// Don't update the widget value to maintain -1 in the UI when seed was special
|
||||||
|
if (!this.serializedCtx.wasSpecial) {
|
||||||
|
this.seedWidget.value = this.serializedCtx.seedUsed;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.serializedCtx.wasSpecial) {
|
if (this.serializedCtx.wasSpecial) {
|
||||||
this.lastSeed = this.serializedCtx.seedUsed;
|
this.lastSeed = this.serializedCtx.seedUsed;
|
||||||
@@ -133,12 +136,8 @@ class SeedControl {
|
|||||||
return; // Exit the function immediately
|
return; // Exit the function immediately
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.serializedCtx.wasSpecial) {
|
// Update lastSeed if user manually changed the seed to a specific value
|
||||||
this.seedWidget.value = -1;
|
if (!this.serializedCtx.wasSpecial && this.seedWidget.value !== -1) {
|
||||||
}
|
|
||||||
|
|
||||||
// Check if seed has changed to a non -1 value, and if so, update lastSeed
|
|
||||||
if (this.seedWidget.value !== -1) {
|
|
||||||
this.lastSeed = this.seedWidget.value;
|
this.lastSeed = this.seedWidget.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user