|
a |
|
b/mouse_scripts/README.md |
|
|
1 |
# Mouse Simulation |
|
|
2 |
|
|
|
3 |
## Installation Guide |
|
|
4 |
1. Install the necessary dependencies: pyquaternion, scipy(1.8.1), numpy(1.2..0), pytorch, pyyaml(6.0), (open ai) gym, cython(0.29.32), pandas, colorama (0.4.5), matplotlib |
|
|
5 |
- Note: To ensure proper installation versions (of those specified), pip install the farms_muscle library before installing the rest of the dependencies |
|
|
6 |
2. Clone this respository |
|
|
7 |
3. To install the mouse model libraries git clone the following repository into the top directory: |
|
|
8 |
- [pybullet](https://github.com/bulletphysics/bullet3) |
|
|
9 |
- [farms_pylog](https://gitlab.com/farmsim/farms_pylog.git) |
|
|
10 |
- [farms_container](https://gitlab.com/farmsim/farms_container.git) |
|
|
11 |
- [farms_muscle](https://gitlab.com/farmsim/farms_muscle.git) |
|
|
12 |
4. Navigate to "/bullet3/examples/SharedMemory/SharedMemoryCommands.h" |
|
|
13 |
- Change the integers in lines(33-34) "#MAX_DEGREE_OF_FREEDOM 128" and "#MAX_NUM_SENSORS 256" to 512 |
|
|
14 |
5. Go to the root of the four cloned repos and type |
|
|
15 |
``` |
|
|
16 |
pip install -e . |
|
|
17 |
``` |
|
|
18 |
|
|
|
19 |
## Simulation |
|
|
20 |
1. To begin training, enter the scripts folder and run: |
|
|
21 |
``` |
|
|
22 |
python main.py --visualize True |
|
|
23 |
``` |
|
|
24 |
2. To view a trained model, run: |
|
|
25 |
``` |
|
|
26 |
python main_trained.py |
|
|
27 |
``` |
|
|
28 |
## Logistics |
|
|
29 |
The data we used to train the mouse is readily available on under the data folder. Any scripts/demos to train/run the simulation are under the scripts folder. Any scripts to analyze the neural activity is found under the Data_Analysis folder. |