GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - flplima/capoeira-simulator: Can a machine learn Capoeira?

BranchesTags
Open more actions menu

Latest commit

 

History

41 Commits
41 Commits

Folders and files

NameName
Last commit message
Last commit date
.agents/skills
.agents/skills
 
 
.claude
.claude
 
 
.github
.github
 
 
bin
bin
 
 
docs
docs
 
 
ml
ml
 
 
public/data
public/data
 
 
scripts
scripts
 
 
src
src
 
 
test
test
 
 
.envrc.example
.envrc.example
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
CLAUDE.md
CLAUDE.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README.pt-BR.md
README.pt-BR.md
 
 
RESEARCH.md
RESEARCH.md
 
 
index.html
index.html
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
sheet.html
sheet.html
 
 
tsconfig.app.json
tsconfig.app.json
 
 
tsconfig.json
tsconfig.json
 
 
tsconfig.node.json
tsconfig.node.json
 
 
vite.config.ts
vite.config.ts
 
 

Repository files navigation

capoeira simulator

English · Português

Can a machine learn capoeira?

capoeira-demo.mp4

Try it in your browser: flplima.github.io/capoeira-simulator

what is it?

A 70 kg mannequin in MuJoCo, the physics engine, running in your browser. Neural networks move it. They learned by trial and error to imitate a capoeirista on video (reinforcement learning, in the DeepMimic style).

how it works

Training, on Modal's GPUs:

flowchart TD
    video["a capoeirista on video"]
    pose["3D pose"]
    angles["the mannequin's joint angles"]
    refs["reference motions"]
    ppo["PPO on Modal's GPUs"]
    files["public/data/sim/ginga/"]
    video --> pose --> angles --> refs --> ppo
    ppo -->|export| files
Loading

In your browser, every 0.03 s:

flowchart TD
    files["the networks, from public/data/sim/ginga/"]
    bar["the berimbau's bar"]
    state["body state"]
    net["network: ginga, kicks, esquiva or recovery"]
    targets["joint targets"]
    mujoco["MuJoCo"]
    files --> net
    bar --> net
    state --> net --> targets --> mujoco
    mujoco -->|0.03 s later| state
Loading

The training pipeline lives in ml/. The app is Vite, React and Three.js, and src/sim/ re-runs the same environment as ml/env.py, checked against it in npm test. The rig, the berimbau, the movement files and the training are in docs/how-it-works.md.

credits and licences

  • Martelo reference: fitted to "Martelo -- Capoeira movimento + slow motion", by the Capoeira Nantes YouTube channel. No footage is in this repository, only the joint angles fitted to it (in public/data/sim/ginga/reference.json).
  • Ginga reference: fitted to a two-camera (front and side) video of a capoeirista with MediaPipe Pose (Apache-2.0).
  • GVHMR (Shen et al., SIGGRAPH Asia 2024) turns the martelo video into 3D pose. It is licensed for educational, research and non-profit use only, and commercial use needs the authors' permission. It is not vendored here: ml/hmr_modal.py clones it when the Modal image builds.
  • SMPL and SMPL-X: the body models GVHMR needs. They need a sign-up, have their own non-commercial research licences, and are not in this repository.
  • MuJoCo (Apache-2.0, Google DeepMind), including its WebAssembly build @mujoco/mujoco.
  • Papers: DeepMimic (Peng et al. 2018) for the reward and the imitation setup, KungfuBot (Xie et al. 2025) for adaptive tracking tolerances, Abdolhosseini et al. 2019 for the symmetry loss, de Leva 1996 for segment masses.
  • Keyframe moves were posed by hand from the sources in RESEARCH.md.

So: the code is MIT. The motion references and the networks trained on them come from that research-only chain and from third-party video, so this project is non-commercial. Reusing those files commercially means clearing GVHMR, SMPL-X and the video's owners yourself.

contributing

Any contribution is welcome, and so are AI agents! AGENTS.md has the rules, and docs/CI-TRIAGE.md maps each CI job to the command that runs it locally.

licence

MIT for the code. The data in public/data/ and test/fixtures/ is CC BY-NC 4.0, for non-commercial use.

About

Can a machine learn Capoeira?

flplima.github.io/capoeira-simulator/

Topics

machine-learningreinforcement-learning

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.