MCPcopy Create free account
hub / github.com/Lightricks/ComfyUI-LTXVideo / define_schema

Method define_schema

sparse_tracks.py:218–252  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

216
217 @classmethod
218 def define_schema(cls):
219 return io.Schema(
220 node_id="LTXVDrawTracks",
221 category="Lightricks/motion_tracking",
222 description=(
223 "GPU-accelerated sparse track renderer. Rasterises circles at "
224 "high resolution and downscales with bilinear interpolation."
225 ),
226 inputs=[
227 io.String.Input(
228 "tracks",
229 multiline=True,
230 tooltip="JSON string of track coordinates (list of point lists with x/y keys).",
231 ),
232 io.Int.Input(
233 "width",
234 default=512,
235 min=8,
236 max=8192,
237 step=8,
238 tooltip="Output image width in pixels.",
239 ),
240 io.Int.Input(
241 "height",
242 default=512,
243 min=8,
244 max=8192,
245 step=8,
246 tooltip="Output image height in pixels.",
247 ),
248 ],
249 outputs=[
250 io.Image.Output(),
251 ],
252 )
253
254 @classmethod
255 def execute(cls, tracks: str, width: int, height: int) -> io.NodeOutput:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected