VaM ControlNet Exporter

What does this actually do? For beginners:

VaM is perfect for posing, but you want a different final look. This plugin lets you take basically any VaM scene and export structured data so AI can interpret it and generate an entirely new image based on your prompt.

VaM and AI workflows complement each other super well. You can pose characters you have a LoRA for, or characters you inject via IP-Adapter, exactly how you want in VaM and then create images or videos from it in ComfyUI / A1111.

It exports matching reference images from a selected WindowCamera:
  • Beauty render - the normal VaM image, used as base for img2img
  • Depth map - grayscale image, white = close, black = far. Keeps exact body shape and camera distance in the AI result
  • OpenPose / COCO-18 - skeleton of your Person atoms, keeps pose of arms, legs, hands and face
All exports use the same camera and resolution, so Beauty, Depth and Pose line up perfectly and can be used together in ControlNet.

More about ControlNet: ControlNet on GitHub | ComfyUI Examples

final_workflow_clean_no_personal.png



Requirements
  • At least one active WindowCamera in the scene
  • The selected WindowCamera must be switched on
  • Load as a Session Plugin

Basic Usage
  • Add the plugin as a Session Plugin.
  • Create or enable a WindowCamera in your scene.
  • Select the WindowCamera in the Settings tab.
  • Set the desired width and height.
  • Use the Beauty, Depth and Pose tabs to preview or export each pass.



Notes
  • Use the.cs file directly. A.cslist file is not required.
  • Depth export supports scene geometry, bodies, clothing and hair. Clothing is rendered as mesh geometry in the Depth pass, regardless of transparent textures or alpha cutouts. Hair uses a special replacement shader pass because raw depthTexture in VaM misses transparent meshes (hair = transparent queue, ZWrite Off).
  • Pose export uses the standard COCO-18 OpenPose layout.
  • Canny, Scribble or similar ControlNet inputs can be generated separately from the Beauty render if needed.
  • Future idea: Video export for depth / pose for video models (AnimateDiff / SVD) - planned for a later update if there is demand.

Credits
Created by Harry Kant.
In memory of Frief, whose help and groundwork contributed to this plugin.
Special thanks to all creators whose scenes and assets were used to produce the example images. Unfortunately, I no longer have all the individual names, but your work is sincerely appreciated.

Support
If you encounter any problems, please contact me and include the scene that causes the issue. This makes it much easier to reproduce and fix the problem.
comfyui_neon_workflow.jpg
Images and attachments
  • depth.png
    depth.png
    68 KB · Views: 0
  • collage_v3_square.png
    collage_v3_square.png
    432.1 KB · Views: 0
  • collage_new_square.png
    collage_new_square.png
    1.2 MB · Views: 0
  • collage_1x1_hub.png
    collage_1x1_hub.png
    268.3 KB · Views: 0
  • render.png
    render.png
    684.6 KB · Views: 0
  • pose.png
    pose.png
    15.3 KB · Views: 0
  • stage2_detailers_00004_.png
    stage2_detailers_00004_.png
    1,019.3 KB · Views: 0
  • stage2_detailers_00005_.png
    stage2_detailers_00005_.png
    1.2 MB · Views: 0
React to this content...

Share this resource

Latest updates

  1. Depth Ghost Figure Fix and Developer Documentation

    Fixed ghost/duplicate figure artifacts in the Depth pass by improving the capture timing and...

Latest reviews

Positive
Version: 1
Wow, this is really cool, looking forward to trying it out!

For anyone unfamiliar since the original post is pretty technical, this would let you take basically any VaM scene and render out _structured_ data in order for AI to interpret and generate an entirely new image based on your given prompt (for example.) I say that but I'm also aware that this community is no stranger to AI workflows.

One curious question: would it be possible to export the depth map and/or poses as videos in the future? That could be really useful for video models.
H
harry kant
Thanks, that's a great summary - way better explained than my technical original post! I will update the description to make it more beginner friendly.

I actually think VaM and AI workflows complement each other super well. You can pose characters you have a LoRA for, or characters you inject via IP-Adapter, exactly how you want in VaM and then generate images or videos from it - I find that really cool.

Video export for depth / pose is a really good idea for video models like AnimateDiff / SVD. I can look into it for a later update if there is demand for it.

I also noticed that some clothing and assets are not correctly captured in the current Depth pass, because in VaM they come from different sources
(skin = opaque, clothing = cutout, hair = transparent - raw depthTexture only has opaque). That needs a fix anyway, so I will include the video export idea when I rework the depth capture.
Upvote 0
Back
Top Bottom