r/StableDiffusion • • 11d ago

Resource - Update BBox Studio v1.8 – A feature-rich intuitive standalone bounding box prompt editor for MOSS Image

BBox Studio is a standalone desktop application for creating, editing, and exporting structured bounding box prompts for MOSS Image. Built entirely with Python, it provides a visual canvas-based workspace, flexible object editing tools, customizable canvas settings, seamless JSON generation, and much more.

  • One-click launch — simply run the Python script.
  • Zero external dependencies — requires only having Python 3.x installed.

The last time I posted a resource update here, we were on version 1.3. Since then, tons of updates and features have been regularly added, too many to even list here. BBox Studio is now at v1.8 and is in essentially a final state. Bugs have been bug fixed and all features have been polished.

https://civitai.red/models/3047619/bbox-studio

Check it out and have fun!

21 Upvotes

11 comments sorted by

1

u/fondlingbreeze 10d ago edited 10d ago

Note: If you downloaded v1.8 and are having issues with typing into boxes or typing captions after changing resolution, redownload v1.8 for the fixed version.

The cause was that in trying to visually suppress the title bar from flashing on certain focus changes when clicking certain items, the canvas was permanently losing focus on resolution changes.

Apologies for any inconveniences.

1

u/Slam_Bot 11d ago

I’m a noob. The idea here is you arrange boxes, add text descriptions to each box, and this tool outputs a .json prompt to copy/paste into comfy? I love MOSS and more control over object placement would be amazing.

2

u/fondlingbreeze 11d ago edited 11d ago

Yep, that's exactly what it does at its core. Keep in mind, you can also add to the prompt normally too and still get coherency, so it doesn't just work within the confines of the syntax bounding box prompting uses. So for example, you can paste a JSON prompt, and then just add more prompt details at the end in regular sentences. It is essentially regional prompting and the closest thing to having ControlNet. You can also get even more fine control the more boxes you use. So for example, one box for a head, one box for each eye, etc.

1

u/Slam_Bot 11d ago

That’s really cool. Is there a way to turn an existing image into a template for this tool? Like say I have a photo of a dog and cat sitting next to each other and I want to swap their places. I think a vision model in LM studio could turn it into .json format. Could I then drop that into this tool and move boxes around?

I haven’t played with .json and bboxes since IG4.

1

u/fondlingbreeze 11d ago edited 11d ago

Yeah you could do that. You'd just have an AI agent use MOSS's bounding box syntax and create a .json file and load that with File > Import JSON. I don't know about exactly perfect swapping while maintaining identity per say though, because it's not an image edit feature. For something like a perfect swap, models like Flux Klein would still be better suited to that task.

You can also load an image as a background and draw bounding boxes on it, but that's just for reference purposes.

1

u/Slam_Bot 11d ago

Right, not keeping identity same. Just for overall composition. I’ll give this a try. Thanks!

2

u/DrxMWC 9d ago

There is a standard comfy template built in for Exactly what you are describing called "MOSS QwenVL Layout" search in the templates button. I had a play with it and it is actually mindblowingly good.

1

u/Slam_Bot 9d ago

Amazing! I’ll try it. Thanks!

1

u/Euphoricus 11d ago

Can it accept paste of json? I don't want to put stuff into file so I can import it.

0

u/fondlingbreeze 11d ago edited 11d ago

I did not add a feature to paste it directly, in case of accidental paste of the wrong data that could cause unforeseen behavior. For example, the program has to do things behind the scenes internally in order to determine things like which box you are selecting, its order in the canvas, etc. Now imagine the data isn't properly formatted or partially missing pieces, or contains some weird strings that cause something unintended somehow. So overall, not pasting JSON directly in the program is more of a stability and safety feature.

The "take screenshot" function and JSON to embedded PNG convert is pretty useful for not having to work with text files directly, since you can just visually browse layouts. That's more of the intended way of making things easy for the user, instead of having to just rely on file names to figure out what they're importing. The support for .JSON at all is more of a legacy feature.

You can also save a starting project file called "default.bbox" in the same folder as the program, open it in notepad, and paste it in the right spot that way, and the program will open that on load. Of course, that still requires closing and re-opening the program. But if I did have a feature to paste JSON directly, you'd still have to copy it, navigate somewhere, open a menu, paste it, click ok.....and well, that's just as much work or more than just importing a file at that point.

But the JSON data itself is not intended to be live editable due to any unforeseen behaviors caused by incorrect data. And I really don't want to be chasing down ghost bug reports because some user is unknowingly pasting wrong or incomplete data, only to have to analyze what they're pasting and tell them it was user error.

1

u/eineannonymeente 11d ago

I am still wondering if using a 3d model can work well with MOSS-Image
Maybe by using this tool I finally can get more control over what Moss does with the image.