| 628 | name="LTXVInContextSampler", |
| 629 | ) |
| 630 | class LTXVInContextSampler: |
| 631 | |
| 632 | @classmethod |
| 633 | def INPUT_TYPES(s): |
| 634 | return { |
| 635 | "required": { |
| 636 | "vae": ("VAE", {"tooltip": "The VAE to use."}), |
| 637 | "guider": ( |
| 638 | "GUIDER", |
| 639 | {"tooltip": "The guider to use, must be a STGGuiderAdvanced."}, |
| 640 | ), |
| 641 | "sampler": ("SAMPLER", {"tooltip": "The sampler to use."}), |
| 642 | "sigmas": ("SIGMAS", {"tooltip": "The sigmas to use."}), |
| 643 | "noise": ("NOISE", {"tooltip": "The noise to use for the sampling."}), |
| 644 | "guiding_latents": ( |
| 645 | "LATENT", |
| 646 | { |
| 647 | "tooltip": "The latents to use for guiding the sampling, typically with an IC-LoRA." |
| 648 | }, |
| 649 | ), |
| 650 | }, |
| 651 | "optional": { |
| 652 | "optional_cond_images": ( |
| 653 | "IMAGE", |
| 654 | { |
| 655 | "tooltip": "The image to use for conditioning the sampling, if not provided, the sampling will be unconditioned (t2v setup). The image will be resized to the size of the first frame." |
| 656 | }, |
| 657 | ), |
| 658 | "num_frames": ( |
| 659 | "INT", |
| 660 | { |
| 661 | "default": -1, |
| 662 | "min": -1, |
| 663 | "max": 1000, |
| 664 | "step": 1, |
| 665 | "tooltip": "If -1, the number of frames will be based on the number of frames in the guiding_latents.", |
| 666 | }, |
| 667 | ), |
| 668 | }, |
| 669 | } |
| 670 | |
| 671 | RETURN_TYPES = ("LATENT", "CONDITIONING", "CONDITIONING") |
| 672 | RETURN_NAMES = ("denoised_video", "positive", "negative") |
| 673 | FUNCTION = "sample" |
| 674 | CATEGORY = "sampling" |
| 675 | |
| 676 | def sample( |
| 677 | self, |
| 678 | vae, |
| 679 | guider, |
| 680 | sampler, |
| 681 | sigmas, |
| 682 | noise, |
| 683 | guiding_latents, |
| 684 | optional_cond_images=None, |
| 685 | optional_cond_indices=None, |
| 686 | num_frames=0, |
| 687 | optional_initialization_latents=None, |
no outgoing calls
no test coverage detected