1. Install Go2Kin¶
Prerequisites¶
- Windows 11
git,conda(Miniconda or Anaconda) and a current NVIDIA driver installed
🚧 TODO: links to installers; note any admin rights / IT requests needed on managed (e.g. university) PCs.
Install¶
Clone the repository:
git clone https://github.com/f-fraysse/Go2Kin.git
cd Go2Kin
Create and activate the Conda environment:
conda create -n Go2Kin python=3.10
conda activate Go2Kin
Install dependencies:
pip install -r requirements.txt
conda install -c conda-forge ffmpeg
NVENC ffmpeg (required for high-resolution / high-frame-rate recording)¶
The automatic audio synchronisation re-encodes each clip on the NVIDIA GPU using
ffmpeg's hevc_nvenc encoder. The conda-forge ffmpeg installed above does not
include NVENC and cannot process high-resolution / high-frame-rate footage (for
example 2.7K at 200 fps) — sync will fail with an encoder error. You must replace it with
a full ffmpeg build that has NVENC:
- Close Go2Kin if it is running (otherwise the ffmpeg file is locked and cannot be replaced).
- Download a build that matches your NVIDIA driver. The n7.1 build from
BtbN's FFmpeg Builds —
ffmpeg-n7.1-latest-win64-gpl-7.1.zip— works with current drivers. (Avoid themaster/latestbuild: it requires a very new driver and otherwise fails with "Driver does not support the required nvenc API version".) - Unzip it, then copy
bin\ffmpeg.exeandbin\ffprobe.exefrom the unzipped folder over the existing files in your Conda environment's binary folder, e.g.C:\Users\<you>\miniconda3\envs\Go2Kin\Library\bin\(orD:\Miniconda3\envs\Go2Kin\Library\bin\). Back up the originals first (rename them toffmpeg.exe.bak/ffprobe.exe.bak) in case you want to revert. - Verify in an activated environment:
ffmpeg -hide_banner -encoders | findstr nvenc
This should list hevc_nvenc.
⚠️ Running
conda update ffmpeg(or recreating the environment) reverts ffmpeg to the NVENC-less conda version. If high-frame-rate sync stops working after an update, repeat the steps above.
Install Pose2Sim as a submodule:
git submodule init
git submodule update
pip install -e ./code/pose2sim
pip uninstall onnxruntime
pip install onnxruntime-gpu==1.20.1
Install OpenSim:
conda install -c opensim-org opensim
Check the install¶
🚧 TODO: quick verification — e.g.
ffmpeg -versionworks;python -c "import onnxruntime; print(onnxruntime.get_device())"reportsGPU; the GUI launches. List common install errors and fixes here as they're encountered.