From de6a56f1db4b62a8de22069d35bf3b805e77f3ec Mon Sep 17 00:00:00 2001 From: Jedrzej Kosinski Date: Tue, 2 Jul 2024 01:10:08 -0500 Subject: [PATCH] Made use of deprecated/experimental .js features, made settings menu names consistent --- animatediff/nodes_animatelcmi2v.py | 1 + animatediff/nodes_context.py | 1 + animatediff/nodes_deprecated.py | 4 ++++ animatediff/nodes_pia.py | 2 +- pyproject.toml | 2 +- web/js/deprecate_nodes.js | 2 +- 6 files changed, 9 insertions(+), 3 deletions(-) diff --git a/animatediff/nodes_animatelcmi2v.py b/animatediff/nodes_animatelcmi2v.py index cb57ee8..be33d11 100644 --- a/animatediff/nodes_animatelcmi2v.py +++ b/animatediff/nodes_animatelcmi2v.py @@ -99,6 +99,7 @@ def INPUT_TYPES(s): }, "optional": { "ad_settings": ("AD_SETTINGS",), + "deprecation_warning": ("ADEWARN", {"text": "Experimental. Don't expect to work.", "warn_type": "experimental", "color": "#CFC"}), } } diff --git a/animatediff/nodes_context.py b/animatediff/nodes_context.py index fd86d0f..b4924f0 100644 --- a/animatediff/nodes_context.py +++ b/animatediff/nodes_context.py @@ -77,6 +77,7 @@ def INPUT_TYPES(s): "guarantee_steps": ("INT", {"default": 1, "min": 0, "max": BIGMAX}), "prev_context": ("CONTEXT_OPTIONS",), "view_opts": ("VIEW_OPTS",), + "deprecation_warning": ("ADEWARN", {"text": ""}), } } diff --git a/animatediff/nodes_deprecated.py b/animatediff/nodes_deprecated.py index 90305fd..f96f538 100644 --- a/animatediff/nodes_deprecated.py +++ b/animatediff/nodes_deprecated.py @@ -292,6 +292,7 @@ def INPUT_TYPES(s): }, "optional": { "mask_motion_scale": ("MASK",), + "optional": {"deprecation_warning": ("ADEWARN", {"text": "Deprecated"})}, } } @@ -320,6 +321,7 @@ def INPUT_TYPES(s): "mask_motion_scale": ("MASK",), "min_motion_scale": ("FLOAT", {"default": 1.0, "min": 0.0, "step": 0.001}), "max_motion_scale": ("FLOAT", {"default": 1.0, "min": 0.0, "step": 0.001}), + "optional": {"deprecation_warning": ("ADEWARN", {"text": "Deprecated"})}, } } @@ -358,6 +360,7 @@ def INPUT_TYPES(s): "mask_motion_scale": ("MASK",), "min_motion_scale": ("FLOAT", {"default": 1.0, "min": 0.0, "step": 0.001}), "max_motion_scale": ("FLOAT", {"default": 1.0, "min": 0.0, "step": 0.001}), + "optional": {"deprecation_warning": ("ADEWARN", {"text": "Deprecated"})}, } } @@ -412,6 +415,7 @@ def INPUT_TYPES(s): "mask_motion_scale": ("MASK",), "min_motion_scale": ("FLOAT", {"default": 1.0, "min": 0.0, "step": 0.001}), "max_motion_scale": ("FLOAT", {"default": 1.0, "min": 0.0, "step": 0.001}), + "optional": {"deprecation_warning": ("ADEWARN", {"text": "Deprecated"})}, } } diff --git a/animatediff/nodes_pia.py b/animatediff/nodes_pia.py index 485808c..c966a38 100644 --- a/animatediff/nodes_pia.py +++ b/animatediff/nodes_pia.py @@ -164,7 +164,7 @@ def INPUT_TYPES(s): }, "optional": { "ad_settings": ("AD_SETTINGS",), - "deprecation_warning": ("ADEWARN", {"text": "Experimental. Don't expect to work", "warn_type": "experimental", "color": "#CFC"}), + "deprecation_warning": ("ADEWARN", {"text": "Experimental. Don't expect to work.", "warn_type": "experimental", "color": "#CFC"}), } } diff --git a/pyproject.toml b/pyproject.toml index 0855189..1bef434 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-animatediff-evolved" description = "Improved AnimateDiff integration for ComfyUI." -version = "1.0.6" +version = "1.0.7" license = "LICENSE" dependencies = [] diff --git a/web/js/deprecate_nodes.js b/web/js/deprecate_nodes.js index ef16b92..1924d2d 100644 --- a/web/js/deprecate_nodes.js +++ b/web/js/deprecate_nodes.js @@ -2,7 +2,7 @@ import { app } from '../../../scripts/app.js' app.ui.settings.addSetting({ id: "ADE.ShowExperimental", - name: "🎭🅐🅓 show experimental nodes", + name: "🎭🅐🅓 Show experimental nodes", type: "boolean", defaultValue: false, });