Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Diffusion Pose Gen

A quick attempt to utilize Stable Diffusion (SD) image generative models (v1.5 & XL) and MediaPipe's Pose Landmarker vision models to generate 3D human poses from an AI prompt.

News

  • 2026-04-25: Updated project to build/run with Pixi.
  • 2025-06-22: Minor updates on docs and dependencies.
  • 2024-11-12: Added a Godot full-body IK pose solver.
  • 2024-10-24: Initial implementation.

Installation

  1. Clone repo: git clone https://github.com/jerenchen/simple-diffusion-pose-gen.git.
  2. (Skip if using Pixi) Install Python dependency:
    1. Change dir into python and (optionally) use a virtual enivronment (e.g. conda).
    2. Install Python depedencies: pip install -r requirements.txt.
  3. Download MediaPipe Pose Landmarker:
    • pixi run download-landmaker, or
    • Manually download Pose Landmarker (Full) and save the file under python/tasks.

Python Pose Gen + Godot IK Solver

  1. Initialize the Python pose-gen service:
    • pixi run posegen-server -- --base sd15 --steps 8
    • Or, without Pixi: Inside dir python, run python posegen.py --base sd15 --steps 8.
  2. Open and run projec.godot inside dir godot with Godot Engine.
  3. Enter a prompt to generate a pose.
SD Godot Pose Gen
Generating a pose using prompt "A basketball player making a 3-pointer jump shot"

Standalone Python Pose Gen

NOTE: The standalone demo requires PySide6 >= v6.7.

pixi run diffusion-posegen, and then enter a prompt to generate a pose.

(Without Pixi: Inside dir python, run: python simple-diffusion-pose-gen.py)

SD Settings
SD Pose Gen

Stable Diffusion Model Settings

  • SD15 has fewer model parameters and therefore requires less memory whereas SDXL could generate images with higher fidelity.
  • Hyper-SD (a SD inference acceleration technique) Steps: 2, 4, or 8, trade-off between speed (fewer bigger steps) and quality (more smaller steps).
  • PyTorch device for running SD inference (if available): CPU, CUDA, or MPS (Apple Silicon).

Acknowledgement

About

A simple Python/Godot example of an AI prompt-based 3D human pose generator

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages