Implementation of MDM, MotionDiffuse and ReMoDiffuse into ComfyUI.
Implementation of 4DHuman, MotionGPT, MDM, MotionDiffuse and ReMoDiffuse into ComfyUI
sudo apt-get install libglfw3-dev libgles2-mesa-dev freeglut3-dev
Install ComfyUI Manager and do steps introduced there to install this repo.
If you're running on Linux, or non-admin account on windows you'll want to ensure /ComfyUI/custom_nodes
and comfyui_controlnet_aux
has write permissions.
There is now a install.bat you can run to install to portable if detected. Otherwise it will default to system and assume you followed ConfyUI's manual installation steps.
If you can't run install.bat (e.g. you are a Linux user). Open the CMD/Shell and do the following:
/ComfyUI/custom_nodes/
foldergit clone https://github.com/Fannovel16/comfyui_controlnet_aux/
comfyui_controlnet_aux
folder
path/to/ComfUI/python_embeded/python.exe -s -m pip install -r requirements.txt
pip install -r requirements.txt
https://github.com/Fannovel16/ComfyUI-MotionDiff/assets/16047777/cc885946-331b-4a9d-a138-717b40572404
https://github.com/Fannovel16/ComfyUI-MotionDiff/blob/main/examples/4dhuman.json
https://github.com/Fannovel16/ComfyUI-MotionDiff/blob/main/examples/full_motiondiff_example.json
https://github.com/Fannovel16/ComfyUI-MotionDiff/assets/16047777/842a6720-5f5d-4f14-813f-f25ccc2d8a72
There are two stickmen outputs: pseudo-openpose and real openpose. The former costs less time but doesn't have head, lacks depth and doesn't exactly match Openpose format while the real one is better overall but requires gradient-based optimization. Some important parameters:
The floating-point vertical field of view in radians refers to the angle of the vertical viewing area in a graphical application or game. It determines how much of the vertical space is visible to the viewer. The value is usually specified in radians, which is a unit of measurement for angles. A larger value will result in a wider vertical viewing area, while a smaller value will result in a narrower vertical viewing area.
P/s: Depth map from SMPL render might create half-naked women when used with ControlNet. My theory is that it learned half-naking pattern in the depth map
Workflow: https://github.com/Fannovel16/ComfyUI-MotionDiff/blob/main/examples/save_and_load.json
Save SMPL
node saves SMPL data as .pt
file
Export SMPL to 3DCGI Software
saves meshes to a folder containing mesh files can be imported to softwares like Blender, Unreal Engine, Unity, etc
Both nodes save the result in Comfy's output folder
Load SMPL
get the files from Comfy's input folder. You have to copy .pt
files from input folder to output folder