u/Plague_Kind

Sparse attention for H3 minimax, enjoy up to 2.5x speed up.

Sparse attention for H3 minimax, enjoy up to 2.5x speed up.

Added to my node pack, sparse attention SLA node for H3 Minimax. speed increase of up to 2.5x.

enjoy.

you can use it with whatever turbo you like, doesn't actually require the SLA lora.
if you oom, add comfykitch attention before it, they work together. you'll get an additional 5-10% speedup.

https://github.com/PlagueKind/ComfyUI-PlagueKind-Nodes

credit to pl0x for designing it and allowing me to be the host.

EDIT: make sure you're on a new pytorch version and CU130.
add the node after your lora loader for now. I haven't tested other positioning.
additional note: Blackwell will see the biggest gain, but other cards still get a big boost.

If you're doing lower res short videos, adjust min seq accordingly if see no speedup or messages about blocks not being sparse.

Confirmed: make sure this is the LAST thing in the chain, connected DIRECTLY to the guider and scheduler.

github.com
u/Plague_Kind — 13 hours ago
▲ 32 r/comfyui+1 crossposts

ComfyUI Node: Unified Image + Mask Resize (LTX 2.3 ready, keeps BOTH sides divisible by 32, replaces Image Resize + Image Resize V2 + Mask mismatch issues)

ComfyUI Node: Unified Image + Mask Resize (LTX 2.3 ready, keeps BOTH sides divisible by 32, replaces Image Resize + Image Resize V2 + Mask mismatch issues)

I made a ComfyUI custom node to solve a very specific but annoying issue in real workflows:

  • LTX 2.3 resolution requirements not staying clean (now possible for both sides divisible by 32 (optional, set divisible by 1 to disable)
  • mask + image resizing drifting out of alignment
  • having to juggle multiple resize nodes (Image Resize, Image Resize V2, mask resize separately)

So I combined everything into one unified system.

🧩 What this node does

This is a drop-in replacement for multiple resize nodes:

It merges:

  • Image Resize
  • Image Resize V2
  • Mask Resize handling
  • Unified geometry logic for both image + mask

⚙️ Key features

  • Multiple scaling modes:
    • Dimensions (W × H)
    • Multiplier
    • Longer Side
    • Shorter Side
    • Total Pixels (MP)
  • ✔ Forces BOTH width and height to be divisible by 32 (LTX 2.3 / SDXL-friendly)
  • ✔ Keeps image + mask perfectly aligned (no drift)
  • ✔ Optional aspect ratio preservation
  • ✔ Center crop mode
  • ✔ Stable tensor-based resizing (no PIL mismatch artifacts)

🧠 Why I built it

In real workflows (especially LTX 2.3 and SDXL pipelines), I kept running into:

  • one side divisible by 32, the other not
  • masks slightly shifting after resize
  • needing 2–3 nodes just to do a “simple resize correctly”

This removes that entire class of problems.

🔧 Best use cases

  • LTX 2.3 workflows (clean latent resolution constraints)
  • SDXL inpainting pipelines
  • Any workflow where mask alignment matters
  • Replacing stacked resize node chains

📦 Repo

https://github.com/PlagueKind/ComfyUI-PlagueKind-Nodes

(Should appear in ComfyUI-Manager once merged)

🩸 Final note

This is intentionally a pipeline simplification node, not a feature-heavy tool. The goal is deterministic resizing behavior across image + mask + latent constraints.

EDIT: crop function fixed and set divisible by 1 to disable that option.

u/Plague_Kind — 3 months ago