Skip to content

Commit

Permalink
Merge PR #416 from Kosinkadink/develop
Browse files Browse the repository at this point in the history
Made use of deprecated/experimental .js features, made settings menu …
  • Loading branch information
Kosinkadink authored Jul 2, 2024
2 parents 31d3799 + de6a56f commit 832e832
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions animatediff/nodes_animatelcmi2v.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}),
}
}

Expand Down
1 change: 1 addition & 0 deletions animatediff/nodes_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": ""}),
}
}

Expand Down
4 changes: 4 additions & 0 deletions animatediff/nodes_deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def INPUT_TYPES(s):
},
"optional": {
"mask_motion_scale": ("MASK",),
"optional": {"deprecation_warning": ("ADEWARN", {"text": "Deprecated"})},
}
}

Expand Down Expand Up @@ -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"})},
}
}

Expand Down Expand Up @@ -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"})},
}
}

Expand Down Expand Up @@ -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"})},
}
}

Expand Down
2 changes: 1 addition & 1 deletion animatediff/nodes_pia.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}),
}
}

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = []

Expand Down
2 changes: 1 addition & 1 deletion web/js/deprecate_nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 832e832

Please sign in to comment.