MCPcopy Index your code
hub / github.com/Lightricks/ComfyUI-LTXVideo / _calculate_tile_seed

Method _calculate_tile_seed

looping_sampler.py:557–574  ·  view source on GitHub ↗

Calculate the seed value for a specific temporal and spatial tile.

(
        self,
        first_seed,
        start_index,
        vertical_tiles,
        horizontal_tiles,
        v,
        h,
        seed_offset,
    )

Source from the content-addressed store, hash-verified

555 return tile_weights
556
557 def _calculate_tile_seed(
558 self,
559 first_seed,
560 start_index,
561 vertical_tiles,
562 horizontal_tiles,
563 v,
564 h,
565 seed_offset,
566 ):
567 """Calculate the seed value for a specific temporal and spatial tile."""
568 return (
569 first_seed
570 + start_index * (vertical_tiles * horizontal_tiles)
571 + v * horizontal_tiles
572 + h
573 + seed_offset
574 )
575
576 def _get_per_tile_value(self, value_list, tile_index):
577 """Get a value from a per-tile configuration list, using the last value if the list is shorter."""

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected