This repository contains the scripts to generate the figures and videos for the NeuroMechFly v2 paper. It is for archival purposes and will not be maintained.
To use NeuroMechFly, see the FlyGym repository and visit neuromechfly.org.
Install the resubmission-20240501 snapshot of FlyGym.
Clone this repository:
git clone git@github.com:NeLy-EPFL/nmf2-paper.git
cd nmf2-paper
git checkout as-publishedCreate the conda environment using the provided environment.yml file:
conda env create --file environment.ymlIf you are working on a machine without a display (e.g., a server), you will need to switch the renderer to EGL:
conda activate nmf2-paper
conda env config vars set MUJOCO_GL=egl PYOPENGL_PLATFORM=egl
conda deactivateSome tasks require time-consuming data collection and training. To save time, you can download the data and trained models:
./download_data.shGenerate the figures and videos by running the following script:
conda activate nmf2-paper
./generate_figures.shNote that the results may vary slightly due to differences in system architecture.