Software and Jupyter notebook for creating the muscle-to-wing motion CNN from Melis, Siwanowicz, and Dickinson 2024. Contains code for generating data figures 3, figure 4 and extended data figure 3.
Tested on ubuntu 22.04 with Python 3.11.4
The complete list of software dependencies can be found in the "dependencies" section of the pyproject.toml file. All of the dependencies will be automatically installed by the Package Installer for Python (pip) when the software is installed.
Requires a working installation of Python. To install cd into the source Download source and cd into source directory. Then to install using pip run
pip install .or to install using poetry run
poetry installSoftware dependencies should be automatically downloaded during the installation.
Typical install time is 5-10min.
Download the required dataset, main_muscle_and_wing_data.h5, from CaltechDATA here and place the file in 'notebook/dataset'.
Run the notebook
jupyter notebook generate_figures.ipynbAn example script, train_wing_hinge_cnn.py, demonstrating how the neural network is trained is provided in the 'examples' subdirectory.
To run the example, download the required dataset, main_muscle_and_wing_data.h5, from CaltechDATA here and place the file the 'examples' subdirectory. Then run train_wing_hinge_cnn.py.
