---
title: "Modeling with CGM2"
canonical: "https://help.vicon.com/space/Nexus212/11248171/Modeling%20with%20CGM2"
format: markdown
---
The Conventional Gait Model 2 (CGM2) was developed by Dr Fabien Leboeuf (University of Salford), and partly funded by Vicon. It is an open-sourced biomechanical model developed in Python 2. The design of the CGM2 model enhances the Conventional Gait Model whilst maintaining its strengths.

You can use Conventional Gait Model 2 (CGM2) VSTs and biomechanical models from within Nexus so that you can execute CGM2 models on your data.

|  |  |
| --- | --- |
| ![image](media://ae054081-e2c1-43de-85c9-086bfb04c5d1) | ![image](media://185889da-bd33-4940-b466-e2ee81b06f08) |

pyCGM2 is compatible with versions of Nexus from 2.7 and later. It fits straight into Nexus pipelines with the usual gait plug-ins such as the Woltring Filter, Gait Cycle event detection, and Plug-in Gait.

> ℹ️ **Note** 
> ℹ️ 
> ℹ️ - Nexus 2.9 and later: CGM2 is automatically installed and you can use it without any further setup or installation.
> ℹ️ - Nexus 2.7 or 2.8: Download the CGM2 installer and its documentation from:   
> ℹ️ [https://www.vicon.com/downloads/models-and-scripts/cgm2](https://www.vicon.com/downloads/models-and-scripts/cgm2)

> Macro (scroll-pagebreak)

The following topics contain information about setting up and using CGM2 with Nexus:

> Macro (children)

For more information, also see the following links:

- For more details about the model: [https://pycgm2.netlify.app/](https://pycgm2.netlify.app/)
- To set up the Python environment (only needed for Nexus 2.7 or 2.8): [https://pycgm2.github.io/pages/pythonInstallation](https://pycgm2.github.io/pages/pythonInstallation)

Note that if you want to use CGM2 with Python 3, you must use pyCGM2 with Nexus 2.12 or later (see [https://pycgm2.netlify.app/code/python-setup/](https://pycgm2.netlify.app/code/python-setup/)).