Diffusion Single File
comfyui

Regional prompting / split-area issues in ComfyUI with Anima

#76
by zison - opened

I’m testing Anima in ComfyUI and ran into problems when trying to do simple regional prompting / split composition.

What I want to do is very basic:

  • left side = dog
  • right side = cat
  • and ideally stop the regional split in the last 20% of sampling

I tried two approaches:

  1. comfyui-prompt-control
  • using PCLazyTextEncode with regional prompt syntax
  • this fails with: ValueError: too many values to unpack (expected 2)
  • the traceback points into comfy/text_encoders/anima.py
  1. ComfyUI core regional conditioning
  • using Conditioning (Set Area with Percentage) + Conditioning (Combine)
  • this fails in KSampler with: IndexError: tuple index out of range

So my question is:

  • Is regional prompting / area conditioning currently supported with Anima in ComfyUI?
  • Are these known limitations caused by the Anima text encoder / latent format?
  • If area-based conditioning is not supported, what is the recommended workflow for simple left-right composition or multi-subject layout?

Environment:

  • ComfyUI 0.11.1
  • Windows portable build
  • Python 3.13.9
  • RTX 4090

Any guidance would be appreciated.

Using the beta nodes Cond pair set props and Cond Pair Combine don't error, but I haven't been able to get a satisfying result out of it. Maybe with some tinkering something could come of it. Here's a blog post with more info. https://blog.comfy.org/p/masking-and-scheduling-lora-and-model-weights

Conditioning set mask works just fine for me. (I hope HF doesn't strip metadata?)

ComfyUI_30389_

Also your comfy seems decently outdated.

Spatial awareness is quite ok with anima. You don't need regional promptiong to tell it to put something left and another thing right. Just use natural langauge. "On the left side of the image..."

Sign up or log in to comment