MCPcopy
hub / github.com/Lightricks/ComfyUI-LTXVideo / generate

Method generate

guide.py:223–254  ·  view source on GitHub ↗
(
        self,
        positive,
        negative,
        vae,
        image,
        width,
        height,
        length,
        batch_size,
        crf,
        blur_radius,
        interpolation,
        crop,
        strength,
    )

Source from the content-addressed store, hash-verified

221 )
222
223 def generate(
224 self,
225 positive,
226 negative,
227 vae,
228 image,
229 width,
230 height,
231 length,
232 batch_size,
233 crf,
234 blur_radius,
235 interpolation,
236 crop,
237 strength,
238 ):
239 image = comfy.utils.common_upscale(
240 image.movedim(-1, 1), width, height, interpolation, crop=crop
241 ).movedim(1, -1)
242 image = nodes_lt.LTXVPreprocess().execute(image, crf)[0]
243 image = blur_internal(image, blur_radius)
244 return nodes_lt.LTXVImgToVideo().execute(
245 positive=positive,
246 negative=negative,
247 vae=vae,
248 image=image,
249 width=width,
250 height=height,
251 length=length,
252 batch_size=batch_size,
253 strength=strength,
254 )
255
256
257@comfy_node(name="LTXVAddGuideAdvancedAttention")

Callers

nothing calls this directly

Calls 2

blur_internalFunction · 0.85
executeMethod · 0.45

Tested by

no test coverage detected