Files
olivv-cs-ComfyUI-FunPack/modules/conditioning/continuity/__init__.py
T

34 lines
1.8 KiB
Python

"""Continuity: a shot that follows another starts from where the other ended.
A scene whose Source is "From generated frame" starts from the last picture of the clip before it, so
the shot carries on instead of starting from nothing. The picture is taken from the finished render
(never invented), saved in the media bin, and added to the scene's references for the run, in the next
free reference slot; this module only holds the two choices. The work is the editor's: it asks the render module for the frame.
A clip that ends in a fade to black has no picture to continue from (v4's i2i lesson: 3 of 4 anchors were
solid black), so by default such a shot starts without one and says so, rather than starting black.
"""
ID = "continuity"
TITLE = "Continuity"
MOUNT = "settings.general"
STAGE = "conditioning"
CATEGORY = "continuity"
STATUS = "experimental"
REQUIRES = ["frame_carry"] # H3 only for now
ROLES = ["assets.reference_1"] # a pipeline with no reference input has nothing to continue through
SETTINGS = {
"carry": {
"type": "bool", "default": True,
"label": "Continue from the previous clip",
"hint": "A scene set to 'From generated frame' uses the last picture of the clip before it as its next free reference. Off: such a scene gets no picture from the clip before. R2V model is strictly recommended, continuity is not guaranteed on T2V/I2V models. Consult with an official prompting guide from MiniMax team for best results.",
},
"dark_guard": {
"type": "bool", "default": True,
"label": "Don't continue from a fade to black",
"hint": "A clip that ends dark gives the next one a black start. With this on, that shot starts without a picture and the run says so.",
"when": {"carry": True},
},
}