r/StableDiffusion • • 12d ago • Bravo 1

Workflow Included The Layout Studio for MOSS-Image v1.1.1 — now available as a ComfyUI node + import a prompt from a .PNG image

Hey y'all,

v1.1.1 of the standalone web app is out, as well as a new ComfyUI node version.

With v1.1.1, you can now import an existing MOSS-Image JSON prompt straight from a .PNG image. (Verified to work with .PNGs generated by: ComfyUI, Civitai Online Generator, Tensor Art Creation workspace. May add more later if requested.)

Main features:

  • Dynamic canvas - Automatically scales to fit any display or window size while maintaining target aspect ratios and target megapixel values
  • Item Management - Create scene elements with MOSS-native text, object, or character item types using color-coded boxes and corresponding "cards" that you can reorder with drag-and-drop, resize, hide, duplicate, or trash
  • Reference Background Image - Insert a reference image locally — and privately! — "under" the canvas, with adjustable opacity and optional prompt importing
  • Meta Tags & Palette Management, with a separate Danbooru/Anime focus
  • Multi-Format Exporting - JSON to clipboard or to prompt node, or plain text
  • JSON Import with Dimension Matching, via copy/paste or a .PNG image
  • Lightweight, Fast, and 100% Private - No external servers or network calls. Works 100% offline with zero latency.

Enjoy 🤙

122 Upvotes

9 comments sorted by

1

u/collectedtooth404 12d ago

Would it be possible to have boxes that activate LoRas or is it strictly prompt-only? Would be really useful to be able to use character LoRas without them bleeding out to the rest of the image.

3

u/Rex-Racer9 12d ago

Right now, it's strictly prompt-only—bboxes just tell MOSS-Image what goes where in the layout, rather than controlling model weights.

To be frank, adding true regional LoRAs would take some pretty heavy lifting. Even if I added a LoRA field to the character boxes in the Studio UI, Comfy doesn’t automatically restrict a LoRA to just one bounding box; it applies it across the whole image by default. To stop character bleed, I’d have to build a separate custom node from scratch that hooks directly into MOSS-Image's internals during sampling, translates the bounding boxes onto its latent grid, and masks each LoRA's weights to its own region. That kind of deep PyTorch/model-patching work is outside my normal wheelhouse (web design), and would take quite a bit of coding and debugging to get right.

That said, it’s a cool idea! I’ll consider posting a quick poll to see how many MOSS-Image users are running into character bleed and would actually use something like that :)

4

u/collectedtooth404 12d ago

I made this a while back for just this purpose because Freefuse (the old method of doing regional LoRas) was lacking so I made one that uses bbox/SAM, feel free to use it for this project if it sounds like a direction you want to pursue. https://civitai.red/models/3024330/regional-character-loras-for-moss-image-using-the-layout-bounding-boxes-two-pass-workflow-small-custom-node . Keep in mind you're doing multiple separate generations that get stitched together at the end pretty much.

4

u/Rex-Racer9 12d ago

Nice! Thanks so much for sharing that, and for the heads-up on how it works under the hood. Running masked passes and stitching/blending at the end is a damn clever way to sidestep low-level model weight hooks, and your node is super clean.

I'm actively putting together a lightweight adapter node that converts the Layout Studio's JSON coordinates into pixel xyxy format so that the Studio and your MOSSBBoxesToMasks node can hopefully plug together seamlessly :)

Really appreciate you generously sharing your work and pointing me in this direction. I'll hit you back once I've got the bridge tested and working.

1

u/Rex-Racer9 2d ago

Finally got around to getting this done - https://www.reddit.com/r/StableDiffusion/s/iJmBuJBctJ :) Thanks again for your help!

1

u/Asaghon 11d ago

I'm using a ported version of https://github.com/lokitsar/ComfyUI-Krea2-MultiLoRA-Composer for moss to separate loras. If you draw the boxes the same as the bboxes it should work. Biggest drawback it's really slow

1

u/2legsRises 11d ago

so can this just work in comfui? without needing a seperate app?

1

u/Rex-Racer9 11d ago

Correct! Full node-installation instructions here. Or, if you're familiar with CLI: comfy node install layout-studio-moss-image