mirror of
https://github.com/jags111/efficiency-nodes-comfyui.git
synced 2026-05-07 01:06:42 -03:00
Compare commits
3 Commits
copilot/fi
...
copilot/fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ee7e8bfd4 | ||
|
|
292b444099 | ||
|
|
ffa6fde8f3 |
10
.gitignore
vendored
Normal file
10
.gitignore
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# Python cache files
|
||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
*.pyo
|
||||||
|
*.pyd
|
||||||
|
|
||||||
|
# Compiled files
|
||||||
|
*.so
|
||||||
|
*.dll
|
||||||
|
*.dylib
|
||||||
@@ -326,6 +326,10 @@ class TSC_LoRA_Stacker:
|
|||||||
FUNCTION = "lora_stacker"
|
FUNCTION = "lora_stacker"
|
||||||
CATEGORY = "Efficiency Nodes/Stackers"
|
CATEGORY = "Efficiency Nodes/Stackers"
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def IS_CHANGED(cls, **kwargs):
|
||||||
|
return float("nan")
|
||||||
|
|
||||||
def lora_stacker(self, input_mode, lora_count, lora_stack=None, **kwargs):
|
def lora_stacker(self, input_mode, lora_count, lora_stack=None, **kwargs):
|
||||||
|
|
||||||
# Extract values from kwargs
|
# Extract values from kwargs
|
||||||
|
|||||||
@@ -117,10 +117,7 @@ class SeedControl {
|
|||||||
this.updateButtonLabel();
|
this.updateButtonLabel();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't update the widget value to maintain -1 in the UI when seed was special
|
this.seedWidget.value = this.serializedCtx.seedUsed;
|
||||||
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;
|
||||||
@@ -136,8 +133,12 @@ class SeedControl {
|
|||||||
return; // Exit the function immediately
|
return; // Exit the function immediately
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update lastSeed if user manually changed the seed to a specific value
|
if (this.serializedCtx.wasSpecial) {
|
||||||
if (!this.serializedCtx.wasSpecial && this.seedWidget.value !== -1) {
|
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