Files
storyteller-ml/animation/MocapNET
2023-12-20 16:27:31 +05:30
..
2023-12-15 04:22:41 +05:30
2023-12-15 04:22:41 +05:30
2023-12-15 04:22:41 +05:30
2023-12-15 04:22:41 +05:30
2023-12-20 14:38:40 +05:30
2023-12-15 04:22:41 +05:30
2023-12-15 04:22:41 +05:30
2023-12-15 04:22:41 +05:30
2023-12-15 04:22:41 +05:30
2023-12-20 15:50:48 +05:30
2023-12-15 04:22:41 +05:30
2023-12-15 04:22:41 +05:30
2023-12-20 16:27:31 +05:30
2023-12-15 04:22:41 +05:30
2023-12-15 04:22:41 +05:30

MocapNET V4

Welcome to the MocapNET V4 documentation! 🎉

🔗 Original Documentation: Find the original docs at README_ORIGINAL.md.

This snapshot from the tag mnet4 branch is brought to you directly from the official MocapNET repo. Dive into the world of motion capture with ease!

🚀 Getting Started: Developer Installation

For Linux Users

To install MocapNET V4 on a Linux system:

cd MocapNET/tree/mnet4/docker
bash build_and_deploy.sh

This script will build and run a Docker image, setting up the necessary environment for MocapNET V4.

For Windows Users

For Windows users, using the Windows Subsystem for Linux (WSL) is recommended:

  1. Enable WSL on Windows:

    • Open PowerShell as Administrator and run:
      dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
      
    • Restart your computer when prompted.
  2. Install a Linux Distribution from the Microsoft Store:

    • Select and install your preferred Linux distribution (e.g., Ubuntu, Debian, Fedora).
  3. Set Up Your Linux Distribution:

    • Launch the Linux distribution and follow the on-screen instructions to set up your account.
  4. Update and Upgrade Your Linux Distribution:

    • Run: sudo apt update && sudo apt upgrade
  5. Install Docker on WSL:

    • Follow the Docker installation instructions for your Linux distribution.
  6. Install MocapNET V4:

    • Navigate to the MocapNET/tree/mnet4/docker directory.
    • Run the build_and_deploy.sh script.

For a detailed guide on setting up WSL, watch this YouTube tutorial: How to Set Up WSL

🎬 How to Use MocapNET V4

Preparing for Usage

Before running MocapNET V4, navigate to the appropriate directory:

cd src/python/mnet4

Quick Start with a Sample Video

Now you're ready to download and use a sample video:

  1. Download a Sample Video:

    wget http://ammar.gr/mocapnet/shuffle.webm -O shuffle.webm
    
  2. Process the Video: Execute the following command to run MocapNET on the downloaded video:

    python3 -m mediapipeHolisticWebcamMocapNET --from shuffle.webm --ik 0.001 99 99 --smooth 60 10 --all --save --plot --headless 2
    

Convert Output BVH

For further processing, such as generating a BVH file without face and toes bones, execute:

./GroundTruthDumper --from dependencies/RGBDAcquisition/opengl_acquisition_shared_library/opengl_depth_and_color_renderer/Motions/DAZFriendlyCGSPEED_ZXYAndHandsAxisBigHands.bvh --merge src/python/mnet4/out.bvh dependencies/RGBDAcquisition/opengl_acquisition_shared_library/opengl_depth_and_color_renderer/Motions//mergeDazFriendlyAndAddHead.profile --setPositionRotation 0 0 0 0 0 0 --bvh remade.bvh

Notes:

  • The output bvh file will be stored inside this directory MocapNET/src/python/mnet4 with the filename out.bvh

  • The converted bvh file will be stored in the root directory MocapNET with the filename remade.bvh

Command-Line Options Explained

  • --headless: Skip the live video display. Ideal for headless servers or GUI-less environments.
  • --live: Launches a live demo. Functionalities may vary.
  • --mt: Enable multi-threading for better performance on multi-core CPUs.
  • --calib [filename]: Use a specific calibration file for camera adjustments.
  • --frameskip [number]: Skip a set number of frames to reduce load or speed up processing.
  • --nnsubsample [number]: Run the neural network at set intervals (e.g., every 2nd frame).
  • --ik [float int int]: Set parameters for inverse kinematics optimization.
  • --smooth [float float]: Apply smoothing to motion capture data.
  • --noik: Turn off inverse kinematics processing.
  • --aspectCorrection [float]: Adjust video or image aspect ratio.
  • --noise [float]: Add noise to input for testing under varied conditions.
  • --size [int int]: Define video/image dimensions.
  • --scale [float]: Scale the output motion data.
  • --plot: Plot BVH channels for skeletal animation visualization.
  • --all: Activate all processing features (body, eyes, mouth, hands).
  • --nobody: Disable body joint estimation.
  • --face: Enable face joint estimation.
  • --eyes / --reye: Estimate right eye joints.
  • --mouth: Enable mouth joint estimation.
  • --hands: Estimate hand joints.
  • --save: Save outputs (images, videos, data, logs).
  • --engine [engine_name]: Choose a specific neural network backend.
  • --from [filepath]: Specify input source (video file or live feed).
  • --profile: Activate performance profiling.

THIS README IS A W.I.P