Skip to content

Commit 38558b9

Browse files
committed
fix video2video creativity (i2v-enabled v2v)
for #1373
1 parent ae3aa0e commit 38558b9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/BuiltinExtensions/ComfyUIBackend/WorkflowGenerator.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,6 +2066,12 @@ public void CreateImageToVideo(ImageToVideoGenInfo genInfo)
20662066
endStep = (int)Math.Round(genInfo.Steps * (1 - genInfo.VideoSwapPercent));
20672067
returnLeftoverNoise = true;
20682068
}
2069+
if (genInfo.StartStep > 0)
2070+
{
2071+
CurrentMedia = srcImage;
2072+
genInfo.HasFixedMediaLen = false;
2073+
CurrentMedia = genInfo.FixMediaLen();
2074+
}
20692075
string explicitSampler = UserInput.Get(ComfyUIBackendExtension.SamplerParam, null, sectionId: genInfo.ContextID, includeBase: false);
20702076
string explicitScheduler = UserInput.Get(ComfyUIBackendExtension.SchedulerParam, null, sectionId: genInfo.ContextID, includeBase: false);
20712077
CurrentMedia = CurrentMedia.AsSamplingLatent(genInfo.Vae, CurrentAudioVae);

0 commit comments

Comments
 (0)