mirror of
https://github.com/jags111/efficiency-nodes-comfyui.git
synced 2026-05-07 01:06:42 -03:00
Compare commits
3 Commits
copilot/ad
...
copilot/fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ee7e8bfd4 | ||
|
|
292b444099 | ||
|
|
ffa6fde8f3 |
27
.gitignore
vendored
27
.gitignore
vendored
@@ -1,21 +1,10 @@
|
|||||||
# Python cache
|
# Python cache files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.pyc
|
||||||
*$py.class
|
*.pyo
|
||||||
|
*.pyd
|
||||||
|
|
||||||
|
# Compiled files
|
||||||
*.so
|
*.so
|
||||||
|
*.dll
|
||||||
# Virtual environments
|
*.dylib
|
||||||
venv/
|
|
||||||
env/
|
|
||||||
ENV/
|
|
||||||
|
|
||||||
# IDE
|
|
||||||
.vscode/
|
|
||||||
.idea/
|
|
||||||
*.swp
|
|
||||||
*.swo
|
|
||||||
*~
|
|
||||||
|
|
||||||
# OS
|
|
||||||
.DS_Store
|
|
||||||
Thumbs.db
|
|
||||||
|
|||||||
11
README.md
11
README.md
@@ -131,17 +131,6 @@ Please check out our WIKI for any use cases and new developments including workf
|
|||||||
<img src="https://github.com/LucianoCirino/efficiency-nodes-media/blob/main/images/nodes/Image%20Overlay%20-%20Node%20Example.png" width="1080">
|
<img src="https://github.com/LucianoCirino/efficiency-nodes-media/blob/main/images/nodes/Image%20Overlay%20-%20Node%20Example.png" width="1080">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</details>
|
|
||||||
<!-------------------------------------------------------------------------------------------------------------------------------------------------------->
|
|
||||||
<details>
|
|
||||||
<summary><b>Live Preview (Eff.)</b></summary>
|
|
||||||
<ul>
|
|
||||||
<li>Node that displays a live preview of images while allowing them to pass through to other nodes in the workflow.</li>
|
|
||||||
<li>Can be connected to multiple samplers sequentially to show progressive updates as the workflow advances through different stages (base sampling, refining, hi-res fix, detailing, etc.).</li>
|
|
||||||
<li>Useful for placing preview displays outside of subgraphs or in custom locations within complex workflows.</li>
|
|
||||||
<li>Simply connect the IMAGE output from any sampler or image processing node to this node's input, and connect its output to continue the workflow.</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
<!-------------------------------------------------------------------------------------------------------------------------------------------------------->
|
<!-------------------------------------------------------------------------------------------------------------------------------------------------------->
|
||||||
<details>
|
<details>
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -4013,34 +4017,6 @@ class TSC_ImageOverlay:
|
|||||||
# Return the edited base image
|
# Return the edited base image
|
||||||
return (base_image,)
|
return (base_image,)
|
||||||
|
|
||||||
########################################################################################################################
|
|
||||||
# TSC Live Preview Node
|
|
||||||
class TSC_LivePreview:
|
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def INPUT_TYPES(cls):
|
|
||||||
return {
|
|
||||||
"required": {
|
|
||||||
"images": ("IMAGE",),
|
|
||||||
},
|
|
||||||
"hidden": {
|
|
||||||
"prompt": "PROMPT",
|
|
||||||
"extra_pnginfo": "EXTRA_PNGINFO"
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
RETURN_TYPES = ("IMAGE",)
|
|
||||||
FUNCTION = "preview_image"
|
|
||||||
OUTPUT_NODE = True
|
|
||||||
CATEGORY = "Efficiency Nodes/Image"
|
|
||||||
|
|
||||||
def preview_image(self, images, prompt=None, extra_pnginfo=None):
|
|
||||||
# Generate preview using ComfyUI's PreviewImage node
|
|
||||||
preview = PreviewImage().save_images(images, prompt=prompt, extra_pnginfo=extra_pnginfo)["ui"]
|
|
||||||
|
|
||||||
# Return both the preview for UI and the original images for pass-through
|
|
||||||
return {"ui": preview, "result": (images,)}
|
|
||||||
|
|
||||||
########################################################################################################################
|
########################################################################################################################
|
||||||
# Noise Sources & Seed Variations
|
# Noise Sources & Seed Variations
|
||||||
# https://github.com/shiimizu/ComfyUI_smZNodes
|
# https://github.com/shiimizu/ComfyUI_smZNodes
|
||||||
@@ -4316,7 +4292,6 @@ NODE_CLASS_MAPPINGS = {
|
|||||||
"Manual XY Entry Info": TSC_XYplot_Manual_XY_Entry_Info,
|
"Manual XY Entry Info": TSC_XYplot_Manual_XY_Entry_Info,
|
||||||
"Join XY Inputs of Same Type": TSC_XYplot_JoinInputs,
|
"Join XY Inputs of Same Type": TSC_XYplot_JoinInputs,
|
||||||
"Image Overlay": TSC_ImageOverlay,
|
"Image Overlay": TSC_ImageOverlay,
|
||||||
"Live Preview (Eff.)": TSC_LivePreview,
|
|
||||||
"Noise Control Script": TSC_Noise_Control_Script,
|
"Noise Control Script": TSC_Noise_Control_Script,
|
||||||
"HighRes-Fix Script": TSC_HighRes_Fix,
|
"HighRes-Fix Script": TSC_HighRes_Fix,
|
||||||
"Tiled Upscaler Script": TSC_Tiled_Upscaler,
|
"Tiled Upscaler Script": TSC_Tiled_Upscaler,
|
||||||
|
|||||||
Reference in New Issue
Block a user